|
| static bool | init () |
| |
| static void | shutdown () |
| |
| static bool | openPort (S32 connectPort, bool doBind=true) |
| |
| static NetSocket | getPort () |
| |
| static void | closePort () |
| |
| static Error | sendto (const NetAddress *address, const U8 *buffer, S32 bufferSize) |
| |
| static NetSocket | openListenPort (U16 port, NetAddress::Type=NetAddress::IPAddress) |
| |
| static NetSocket | openConnectTo (const char *stringAddress) |
| |
| static void | closeConnectTo (NetSocket socket) |
| |
| static Error | sendtoSocket (NetSocket socket, const U8 *buffer, S32 bufferSize, S32 *bytesWritten=NULL) |
| |
| static bool | compareAddresses (const NetAddress *a1, const NetAddress *a2) |
| |
| static Net::Error | stringToAddress (const char *addressString, NetAddress *address, bool hostLookup=true, int family=0) |
| |
| static void | addressToString (const NetAddress *address, char addressString[256]) |
| |
| static NetSocket | openSocket () |
| |
| static Error | closeSocket (NetSocket socket) |
| |
| static Error | send (NetSocket socket, const U8 *buffer, S32 bufferSize, S32 *outBytesWritten=NULL) |
| |
| static Error | recv (NetSocket socket, U8 *buffer, S32 bufferSize, S32 *bytesRead) |
| |
| static Error | connect (NetSocket socket, const NetAddress *address) |
| |
| static Error | listen (NetSocket socket, S32 maxConcurrentListens) |
| |
| static NetSocket | accept (NetSocket acceptSocket, NetAddress *remoteAddress) |
| |
| static Error | bindAddress (const NetAddress &address, NetSocket socket, bool useUDP=false) |
| |
| static Error | setBufferSize (NetSocket socket, S32 bufferSize) |
| |
| static Error | setBroadcast (NetSocket socket, bool broadcastEnable) |
| |
| static Error | setBlocking (NetSocket socket, bool blockingIO) |
| |
| static Net::Error | getListenAddress (const NetAddress::Type type, NetAddress *address, bool forceDefaults=false) |
| | Gets the desired default listen address for a specified address type.
|
| |
| static void | getIdealListenAddress (NetAddress *address) |
| |
| static void | enableMulticast () |
| |
| static void | disableMulticast () |
| |
| static bool | isMulticastEnabled () |
| |
| static bool | isAddressTypeAvailable (NetAddress::Type addressType) |
| |
| static void | process () |
| |
Platform-specific network operations.