version 1.23, 2007/06/05 09:40:05
|
version 1.23.8.1, 2008/01/02 21:00:39
|
|
|
{ | { |
public: | public: |
| |
|
/** |
|
Connects the specified socket to the specified address. If the socket |
|
is non-blocking, the connect attempt will time out after the specified |
|
interval. |
|
|
|
@param socket The socket to connect. |
|
@param address The address to which to connect the socket |
|
@param addressLength The length of the sockaddr buffer in which the |
|
address is specified. |
|
@param timeoutMilliseconds The number of milliseconds after which the |
|
connect attempt should time out, if the socket is non-blocking. |
|
@return True if the connect attempt is successful, false otherwise. |
|
*/ |
|
static Boolean timedConnect( |
|
SocketHandle socket, |
|
sockaddr* address, |
|
int addressLength, |
|
Uint32 timeoutMilliseconds); |
|
|
static Sint32 read(SocketHandle socket, void* ptr, Uint32 size); | static Sint32 read(SocketHandle socket, void* ptr, Uint32 size); |
| |
static Sint32 write(SocketHandle socket, const void* ptr, Uint32 size); | static Sint32 write(SocketHandle socket, const void* ptr, Uint32 size); |
|
|
| |
static void close(SocketHandle socket); | static void close(SocketHandle socket); |
| |
static void enableBlocking(SocketHandle socket); |
|
|
|
static void disableBlocking(SocketHandle socket); | static void disableBlocking(SocketHandle socket); |
| |
static void initializeInterface(); | static void initializeInterface(); |