Lua Player Plus Vita
Documentation of lpp-vita
Socket Class Reference

Public Member Functions

int createServerSocket (int port, NetProtocol protocol)
 Create a server socket. More...
 
int connect (string host, int port, NetProtocol protocol)
 Connect to a server. More...
 
int send (int sock, string data)
 Send data via socket. More...
 
string receive (int sock, int size)
 Send data via socket. More...
 
int accept (int sock)
 Accept new connections for a server socket. More...
 
void close (int sock)
 Close a socket. More...