7 #ifndef __enet_EnetCatalog_h__ 8 #define __enet_EnetCatalog_h__ 29 void initialize(
void);
33 virtual Result disconnect(
void)
override;
35 virtual Result connectAsServer(
String a_address,U16 a_port)
override;
36 virtual Result connectAsClient(
String a_address,U16 a_port)
override;
42 I32 a_includeCount,
const String* a_pIncludes,
43 I32 a_excludeCount,
const String* a_pExcludes,
44 const U8* a_pRawBytes=NULL,I32 a_byteCount=0)
override;
46 void sendString(
String a_textD);
47 void sendBytes(
const U8* a_pByteBlock,
const I32 a_byteCountD);
52 MessageBuffer(
void) { m_currentOffset = 0; }
54 void AddString(
const String &str);
55 void GetString(
String &str);
57 void AddBytes(
const U8 *
data,
const int size);
58 I32 GetBytes(U8 *data,
const int size);
63 const U8* Data(
void) {
return m_data.data(); }
64 Array<U8>& DataArray(
void) {
return m_data; }
65 I32 Size(
void) {
return m_data.size(); }
74 class FE_DL_EXPORT ReceiverTask:
public Thread::Functor
79 virtual void operate(
void);
81 I32 readString(
String& a_rString);
83 I32 readIdentity(Identity& a_identity);
86 void* m_pEnetConnection;
92 MessageBuffer m_receiveMessage;
95 MessageBuffer m_message;
96 Thread* m_pReceiverThread;
97 ReceiverTask m_receiverTask;
99 void* m_pEnetConnection;
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
StateCatalog with connected mirroring.
Definition: ConnectedCatalog.h:70
Automatically reference-counted string container.
Definition: String.h:128
ConnectedCatalog over Enet.
Definition: EnetCatalog.h:20