wxLuaSocketBase Class Reference

#include <wxlsock.h>

Inheritance diagram for wxLuaSocketBase:
[legend]

List of all members.

Public Member Functions

 wxLuaSocketBase ()
virtual ~wxLuaSocketBase ()
int GetPortNumber () const
wxString GetAddress () const
virtual bool IsConnected ()=0
virtual int Read (char *buffer, wxUint32 length)=0
virtual int Write (const char *buffer, wxUint32 length)=0
bool ReadCmd (unsigned char &value)
bool ReadInt32 (wxInt32 &value)
bool ReadLong (long &value)
bool ReadString (wxString &value)
bool ReadDebugData (wxLuaDebugData &data)
bool WriteCmd (char value)
bool WriteInt32 (wxInt32 value)
bool WriteLong (long value)
bool WriteString (const wxString &value)
bool WriteDebugData (const wxLuaDebugData &debugData)
virtual wxString GetErrorMsg (bool clear_msg)
void AddErrorMessage (const wxString &msg)
virtual wxString GetLastErrorMsg () const =0

Public Attributes

wxString m_name
wxString m_errorMsg
wxString m_address
int m_port_number

Private Member Functions

 DECLARE_ABSTRACT_CLASS (wxLuaSocketBase)

Detailed Description

Definition at line 55 of file wxlsock.h.


Constructor & Destructor Documentation

wxLuaSocketBase::wxLuaSocketBase (  ) 

Definition at line 58 of file wxlsock.h.

virtual wxLuaSocketBase::~wxLuaSocketBase (  )  [virtual]

Definition at line 59 of file wxlsock.h.


Member Function Documentation

void wxLuaSocketBase::AddErrorMessage ( const wxString &  msg  ) 
wxLuaSocketBase::DECLARE_ABSTRACT_CLASS ( wxLuaSocketBase   )  [private]
wxString wxLuaSocketBase::GetAddress (  )  const

Definition at line 64 of file wxlsock.h.

wxString wxLuaSocketBase::GetErrorMsg ( bool  clear_msg  )  [virtual]
virtual wxString wxLuaSocketBase::GetLastErrorMsg (  )  const [pure virtual]

Implemented in wxLuaCSocket, and wxLuawxSocket.

Referenced by AddErrorMessage().

int wxLuaSocketBase::GetPortNumber (  )  const

Definition at line 62 of file wxlsock.h.

virtual bool wxLuaSocketBase::IsConnected (  )  [pure virtual]

Implemented in wxLuaCSocket, and wxLuawxSocket.

virtual int wxLuaSocketBase::Read ( char *  buffer,
wxUint32  length 
) [pure virtual]
bool wxLuaSocketBase::ReadCmd ( unsigned char &  value  ) 
bool wxLuaSocketBase::ReadDebugData ( wxLuaDebugData data  ) 

Definition at line 153 of file wxlsock.cpp.

References wxLuaDebugData::Add(), lua2wx(), m_name, Read(), ReadInt32(), and wxLuaSocketDebugMsg.

bool wxLuaSocketBase::ReadInt32 ( wxInt32 &  value  ) 

Definition at line 113 of file wxlsock.cpp.

References m_name, Read(), and wxLuaSocketDebugMsg.

Referenced by wxLuaDebugTarget::HandleDebuggerCmd(), and ReadDebugData().

bool wxLuaSocketBase::ReadLong ( long &  value  ) 

Definition at line 121 of file wxlsock.cpp.

References lua2wx(), m_name, Read(), and wxLuaSocketDebugMsg.

Referenced by wxLuaDebugTarget::HandleDebuggerCmd().

bool wxLuaSocketBase::ReadString ( wxString &  value  ) 

Definition at line 132 of file wxlsock.cpp.

References lua2wx(), m_name, Read(), and wxLuaSocketDebugMsg.

Referenced by wxLuaDebugTarget::HandleDebuggerCmd().

virtual int wxLuaSocketBase::Write ( const char *  buffer,
wxUint32  length 
) [pure virtual]
bool wxLuaSocketBase::WriteCmd ( char  value  ) 
bool wxLuaSocketBase::WriteDebugData ( const wxLuaDebugData debugData  ) 
bool wxLuaSocketBase::WriteInt32 ( wxInt32  value  ) 
bool wxLuaSocketBase::WriteLong ( long  value  ) 

Definition at line 221 of file wxlsock.cpp.

References m_name, Write(), and wxLuaSocketDebugMsg.

Referenced by wxLuaDebugTarget::NotifyTableEnumeration().

bool wxLuaSocketBase::WriteString ( const wxString &  value  ) 

Member Data Documentation

Definition at line 105 of file wxlsock.h.

Referenced by AddErrorMessage(), wxLuaCSocket::Connect(), and wxLuaCSocket::wxLuaCSocket().

Definition at line 104 of file wxlsock.h.

Referenced by AddErrorMessage(), and GetErrorMsg().


The documentation for this class was generated from the following files:
Generated on Tue Jul 13 10:30:39 2010 for wxLua by  doxygen 1.6.3