Lugre::cConnection_L Class Reference

Inheritance diagram for Lugre::cConnection_L:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cConnection_L:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void RegisterMethods (lua_State *L)
 called by Register(), registers object-methods (see cLuaBind constructor for examples)
virtual const char * GetLuaTypeName ()

Static Public Member Functions

static int NetConnect (lua_State *L)
 for lua : cConnection* NetConnect (string host,int port);
static int NetLocalMaster (lua_State *L)
 for lua : cConnection* NetLocalMaster ();
static int NetLocalSlave (lua_State *L)
 for lua : cConnection* NetLocalSlave (localmaster);
static int NetReadAndWrite (lua_State *L)
 for lua : NetReadAndWrite ();
static int NtoA (lua_State *L)
static int AtoN (lua_State *L)
static int GetHostByName (lua_State *L)
static int Destroy (lua_State *L)
static int GetRemoteAddress (lua_State *L)
static int IsConnected (lua_State *L)
static int Push (lua_State *L)
 for lua : void Push (fifo)
static int Pop (lua_State *L)


Detailed Description

Definition at line 19 of file lugre_net_L.cpp.


Member Function Documentation

virtual void Lugre::cConnection_L::RegisterMethods ( lua_State *  L  )  [inline, virtual]

called by Register(), registers object-methods (see cLuaBind constructor for examples)

Reimplemented from Lugre::cLuaBind< _T >.

Definition at line 23 of file lugre_net_L.cpp.

References AtoN(), Destroy(), GetHostByName(), GetRemoteAddress(), IsConnected(), NetConnect(), NetLocalMaster(), NetLocalSlave(), NetReadAndWrite(), NtoA(), Pop(), PROFILE, Push(), and REGISTER_METHOD.

static int Lugre::cConnection_L::NetConnect ( lua_State *  L  )  [inline, static]

for lua : cConnection* NetConnect (string host,int port);

Definition at line 45 of file lugre_net_L.cpp.

References Lugre::cNet::Connect(), Lugre::cLuaBind< _T >::CreateUData(), Lugre::cNet::GetSingleton(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::NetLocalMaster ( lua_State *  L  )  [inline, static]

for lua : cConnection* NetLocalMaster ();

Definition at line 51 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::CreateUData(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::NetLocalSlave ( lua_State *  L  )  [inline, static]

for lua : cConnection* NetLocalSlave (localmaster);

Definition at line 57 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), Lugre::cLuaBind< _T >::CreateUData(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::NetReadAndWrite ( lua_State *  L  )  [inline, static]

for lua : NetReadAndWrite ();

Definition at line 63 of file lugre_net_L.cpp.

References Lugre::cNet::GetSingleton(), PROFILE, and Lugre::cNet::Step().

Referenced by RegisterMethods().

static int Lugre::cConnection_L::NtoA ( lua_State *  L  )  [inline, static]

converts a numeric ip (int/lightudata) to a s.s.s.s ip for lua : string NtoA (int numeric_ip)

Definition at line 70 of file lugre_net_L.cpp.

References PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::AtoN ( lua_State *  L  )  [inline, static]

converts a s.s.s.s ip to a numeric for lua : addr AtoN (string ip)

Definition at line 87 of file lugre_net_L.cpp.

References PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::GetHostByName ( lua_State *  L  )  [inline, static]

converts a hostname to a ip as string or nil on error for lua : string GetHostByName (string hostname)

Definition at line 102 of file lugre_net_L.cpp.

References Lugre::cNet::GetHostByName(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::Destroy ( lua_State *  L  )  [inline, static]

Definition at line 120 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::GetRemoteAddress ( lua_State *  L  )  [inline, static]

Definition at line 125 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::IsConnected ( lua_State *  L  )  [inline, static]

Definition at line 130 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), and PROFILE.

Referenced by RegisterMethods().

static int Lugre::cConnection_L::Push ( lua_State *  L  )  [inline, static]

for lua : void Push (fifo)

Definition at line 139 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), PROFILE, and Lugre::cFIFO::size().

Referenced by RegisterMethods().

static int Lugre::cConnection_L::Pop ( lua_State *  L  )  [inline, static]

ADDS data to fifo, doesn't clear fifo first clears network outbuffer for lua : void Pop (fifo)

Definition at line 152 of file lugre_net_L.cpp.

References Lugre::cLuaBind< _T >::checkudata_alive(), PROFILE, and Lugre::cFIFO::Push().

Referenced by RegisterMethods().

virtual const char* Lugre::cConnection_L::GetLuaTypeName (  )  [inline, virtual]

Implements Lugre::cLuaBind< _T >.

Definition at line 163 of file lugre_net_L.cpp.


The documentation for this class was generated from the following file:

Generated on Wed Feb 8 06:00:19 2012 for cpp by  doxygen 1.5.6