Lugre::cUDP_SendSocket_L Class Reference

Inheritance diagram for Lugre::cUDP_SendSocket_L:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cUDP_SendSocket_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 Create_UDP_SendSocket (lua_State *L)
 for lua : cUDP_SendSocket* Create_UDP_SendSocket ();
static int Destroy (lua_State *L)
static int Send (lua_State *L)
static int SetBroadcast (lua_State *L)


Detailed Description

Definition at line 244 of file lugre_net_L.cpp.


Member Function Documentation

virtual void Lugre::cUDP_SendSocket_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 248 of file lugre_net_L.cpp.

References Create_UDP_SendSocket(), Destroy(), PROFILE, REGISTER_METHOD, Send(), and SetBroadcast().

static int Lugre::cUDP_SendSocket_L::Create_UDP_SendSocket ( lua_State *  L  )  [inline, static]

for lua : cUDP_SendSocket* Create_UDP_SendSocket ();

Definition at line 262 of file lugre_net_L.cpp.

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

Referenced by RegisterMethods().

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

Definition at line 269 of file lugre_net_L.cpp.

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

Referenced by RegisterMethods().

static int Lugre::cUDP_SendSocket_L::Send ( lua_State *  L  )  [inline, static]

for lua : resultcode Send (addr,port,fifo,datalen=fifosize); if datalen is not specified, it defaults to the size of the entire fifo the data is NOT popped from the fifo addr is a light userdata representing the ip address, e.g. from net_L.cpp : cConnection_L::GetRemoteAddress or AtoN

Definition at line 278 of file lugre_net_L.cpp.

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

Referenced by RegisterMethods().

static int Lugre::cUDP_SendSocket_L::SetBroadcast ( lua_State *  L  )  [inline, static]

for lua : void SetBroadcast (number); enable broadcast for this socket, number=1 -> true, number=0 -> false

Definition at line 292 of file lugre_net_L.cpp.

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

Referenced by RegisterMethods().

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

Implements Lugre::cLuaBind< _T >.

Definition at line 298 of file lugre_net_L.cpp.


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

Generated on Tue May 22 06:00:39 2012 for cpp by  doxygen 1.5.6