[OgreKit Lua]

Classes | Functions | Variables
gsNetwork.h File Reference

Classes

class  gsNetwork
 

Functions

void initCallbacks ()
 
void onSocketOpen (int fd, void *userData)
 
void onSocketMessage (int fd, void *userData)
 
void onSocketError (int fd, int err, const char *msg, void *userData)
 
void setSocketCallback (gsFunction func)
 
void startNetServer (unsigned short port)
 
void stopNetServer ()
 
bool isServerRunning ()
 
void startNetClient (gkString serverAddress, unsigned short port)
 
void stopNetClient ()
 
bool isClientRunning ()
 

Variables

static gkLuaEvent * socketCallback = 0
 

Function Documentation

void initCallbacks ( )
bool isClientRunning ( )
bool isServerRunning ( )
void onSocketError ( int  fd,
int  err,
const char *  msg,
void *  userData 
)
void onSocketMessage ( int  fd,
void *  userData 
)
void onSocketOpen ( int  fd,
void *  userData 
)
void setSocketCallback ( gsFunction  func)
void startNetClient ( gkString  serverAddress,
unsigned short  port 
)
void startNetServer ( unsigned short  port)
void stopNetClient ( )
void stopNetServer ( )

Variable Documentation

gkLuaEvent* socketCallback = 0
static