Mercurial > code
comparison C++/SocketListener.h @ 194:9fc5f917872b
Update Luae bits and LuaSocket
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Nov 2013 17:07:50 +0100 |
parents | ce3e1c3d6fed |
children | 3c12f0e8bbb9 |
comparison
equal
deleted
inserted
replaced
193:258087829c66 | 194:9fc5f917872b |
---|---|
61 * Remove every sockets in the listener. | 61 * Remove every sockets in the listener. |
62 */ | 62 */ |
63 void clear(); | 63 void clear(); |
64 | 64 |
65 /** | 65 /** |
66 * Get the number of clients in listener. | |
67 * | |
68 * @return the number of clients in the listener. | |
69 */ | |
70 unsigned size(); | |
71 | |
72 /** | |
66 * Wait for an event in the socket list. If both s and us are set to 0 then | 73 * Wait for an event in the socket list. If both s and us are set to 0 then |
67 * it waits indefinitely. | 74 * it waits indefinitely. |
68 * | 75 * |
69 * @param s the timeout in seconds | 76 * @param s the timeout in seconds |
70 * @param us the timeout in milliseconds | 77 * @param us the timeout in milliseconds |