_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <net_lowlevel.h>
◆ SocketSet()
◆ AddSocket()
Add a socket to a socket set
- Parameters
-
socket | Socket to add to the socket set |
◆ DelSocket()
Delete a socket from a socket set
- Parameters
-
socket | Socket to delete from the socket set |
◆ HasDataToRead()
int SocketSet::HasDataToRead |
( |
Socket |
socket | ) |
const |
Check if a socket in a socket set is ready.
Check if a socket in a socket set is ready.
- Parameters
-
- Returns
- Non-zero if socket is ready
◆ Select()
int SocketSet::Select |
( |
int |
timeout | ) |
|
Wait for socket set ready.
Wait for socket set ready.
- Parameters
-
timeout | Timeout in 1/1000 seconds. |
- Returns
- 1 if data is available, 0 if not, -1 if failure.
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The