[ENet-discuss] gracefully exiting

Mihai Draghicioiu mihai.draghicioiu at gmail.com
Sat Oct 2 00:50:23 PDT 2010


perhaps you can send a message that says 'server is shutting down.
connection refused'

On Sat, Oct 2, 2010 at 9:42 AM, Stephan Dilly <stephan at extrawurst.org> wrote:
> I think there is no way to completly disable accepting, but u can just
> disconnet all connecting peers the moment u get the connect even on
> host_service(). this works for me at least.
>
> Stephan
>
> On 01.10.2010 19:40, Jay Sprenkle wrote:
>>
>> Good afternoon all,
>>
>> Is there any easy way to cause an enet host to stop accepting connections?
>> On receipt of a flag I'd like to stop accepting new connections but let
>> the existing connections finish what they're doing before exiting.
>>
>> Thanks
>>
>> --
>> ---
>> "Is real reporting dead?  News at 11!"
>>
>>
>>
>> _______________________________________________
>> ENet-discuss mailing list
>> ENet-discuss at cubik.org
>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>


More information about the ENet-discuss mailing list