#include <SocketLayer.h>
Public Member Functions | |
SocketLayer () | |
~SocketLayer () | |
SOCKET | Connect (SOCKET writeSocket, unsigned long binaryAddress, unsigned short port) |
SOCKET | CreateBoundSocket (unsigned short port, bool blockingSocket) |
const char * | DomainNameToIP (const char *domainName) |
bool | AssociateSocketWithCompletionPortAndRead (SOCKET readSocket, unsigned long binaryAddress, unsigned short port, RakPeer *rakPeer) |
void | Write (SOCKET writeSocket, const char *data, int length) |
bool | RecvFrom (SOCKET s, RakPeer *rakPeer, int *errorCode) |
void | GetMyIP (char ipList[10][16]) |
int | SendTo (SOCKET s, char *data, int length, char ip[16], unsigned short port) |
int | SendTo (SOCKET s, char *data, int length, unsigned long binaryAddress, unsigned short port) |
Static Public Member Functions | |
static SocketLayer * | Instance () |
Static Private Attributes | |
static bool | socketLayerStarted = false |
static SocketLayer | I |
|
Default Constructor |
|
Destructor |
|
Start an asynchronous read using the specified socket. The callback will use the specified PlayerID (associated with this socket) and call either the client or the server callback (one or the other should be 0) |
|
Create a socket connected to a remote host
|
|
Creates a socket to listen for incoming connections on the specified port
|
|
|
|
Retrieve all local IP address in a printable format
|
|
Get Singleton Instance of the Socket Layer unique object.
|
|
Read data from a socket
|
|
Send data to a peer. The socket should not be connected to a remote host.
|
|
Send data to a peer. The socket should not be connected to a remote host.
|
|
Does a writing operation on a socket. It Send a packet to a peer throught the network. The socket must be connected
|
|
Singleton instance |
|
Tel whether or not the socket layer is already active |