[Libevent-users] sockets descriptor access

Ycrux ycrux at club-internet.fr
Wed Mar 12 18:40:18 EDT 2008


Hi Niels,

> I guess I do not quite understand what you are trying to accomplish.
> In most cases, you will get a different fd for each connection.
> Perhaps, you could explain the reason for hashing on something?  Why
> don't you hash on the remote IP?
>   

We can have the case that multiple clients use the same IP address.
Hashing this IP will produce the same digest.

Following your suggestion, is there any recommended way (i.e. via a 
getter method) to access the "fd" descriptor?

By the way. Is there a clean method to exit the libevent infinite loop 
and shutdown
my server cleanly?

Thanks in advance

cheers
Y


More information about the Libevent-users mailing list