#include <platformNetwork.h>
|
| static bool | init () |
| |
| static void | shutdown () |
| |
| static void | process () |
| |
| static bool | openPort (S32 connectPort) |
| |
| static void | closePort () |
| |
| static Error | sendto (const NetAddress *address, const U8 *buffer, S32 bufferSize) |
| |
| static NetSocket | openListenPort (U16 port) |
| |
| static NetSocket | openConnectTo (const char *stringAddress) |
| |
| static void | closeConnectTo (NetSocket socket) |
| |
| static Error | sendtoSocket (NetSocket socket, const U8 *buffer, S32 bufferSize) |
| |
| static bool | compareAddresses (const NetAddress *a1, const NetAddress *a2) |
| |
| static bool | stringToAddress (const char *addressString, NetAddress *address) |
| |
| static void | addressToString (const NetAddress *address, char addressString[256]) |
| |
| static NetSocket | openSocket () |
| |
| static Error | closeSocket (NetSocket socket) |
| |
| static Error | connect (NetSocket socket, const NetAddress *address) |
| |
| static Error | listen (NetSocket socket, S32 maxConcurrentListens) |
| |
| static NetSocket | accept (NetSocket acceptSocket, NetAddress *remoteAddress) |
| |
| static Error | bind (NetSocket socket, U16 port) |
| |
| static Error | setBufferSize (NetSocket socket, S32 bufferSize) |
| |
| static Error | setBroadcast (NetSocket socket, bool broadcastEnable) |
| |
| static Error | setBlocking (NetSocket socket, bool blockingIO) |
| |
| static Error | send (NetSocket socket, const U8 *buffer, S32 bufferSize) |
| |
| static Error | recv (NetSocket socket, U8 *buffer, S32 bufferSize, S32 *bytesRead) |
| |
| Enumerator |
|---|
| NoError |
|
| WrongProtocolType |
|
| InvalidPacketProtocol |
|
| WouldBlock |
|
| NotASocket |
|
| UnknownError |
|
| Enumerator |
|---|
| UDPProtocol |
|
| IPXProtocol |
|
| TCPProtocol |
|
| static NetSocket accept |
( |
NetSocket |
acceptSocket, |
|
|
NetAddress * |
remoteAddress |
|
) |
| |
|
static |
| static void addressToString |
( |
const NetAddress * |
address, |
|
|
char |
addressString[256] |
|
) |
| |
|
static |
| static Error bind |
( |
NetSocket |
socket, |
|
|
U16 |
port |
|
) |
| |
|
static |
| static void closeConnectTo |
( |
NetSocket |
socket | ) |
|
|
static |
| static void closePort |
( |
| ) |
|
|
static |
| static Error closeSocket |
( |
NetSocket |
socket | ) |
|
|
static |
| static Error listen |
( |
NetSocket |
socket, |
|
|
S32 |
maxConcurrentListens |
|
) |
| |
|
static |
| static NetSocket openConnectTo |
( |
const char * |
stringAddress | ) |
|
|
static |
| static NetSocket openListenPort |
( |
U16 |
port | ) |
|
|
static |
| static bool openPort |
( |
S32 |
connectPort | ) |
|
|
static |
| static NetSocket openSocket |
( |
| ) |
|
|
static |
| static Error recv |
( |
NetSocket |
socket, |
|
|
U8 * |
buffer, |
|
|
S32 |
bufferSize, |
|
|
S32 * |
bytesRead |
|
) |
| |
|
static |
| static Error send |
( |
NetSocket |
socket, |
|
|
const U8 * |
buffer, |
|
|
S32 |
bufferSize |
|
) |
| |
|
static |
| static Error sendto |
( |
const NetAddress * |
address, |
|
|
const U8 * |
buffer, |
|
|
S32 |
bufferSize |
|
) |
| |
|
static |
| static Error sendtoSocket |
( |
NetSocket |
socket, |
|
|
const U8 * |
buffer, |
|
|
S32 |
bufferSize |
|
) |
| |
|
static |
| static Error setBlocking |
( |
NetSocket |
socket, |
|
|
bool |
blockingIO |
|
) |
| |
|
static |
| static Error setBroadcast |
( |
NetSocket |
socket, |
|
|
bool |
broadcastEnable |
|
) |
| |
|
static |
| static Error setBufferSize |
( |
NetSocket |
socket, |
|
|
S32 |
bufferSize |
|
) |
| |
|
static |
| static bool stringToAddress |
( |
const char * |
addressString, |
|
|
NetAddress * |
address |
|
) |
| |
|
static |
The documentation for this struct was generated from the following file:
- platform/platformNetwork.h