📄 type_gsocketclient.html
字号:
<html><head><title>Generated Documentation</title></head><body> <image src="headerimage.png"> <br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GSocketClient</b></big></big></big><br>extends <a href="type_GSocketClientBase.html">GSocketClientBase</a><br></td><td> -------------------------------------------------------------------------- This class is designed to make network communication easy</td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;"><a href="type_GSocketClient.html">GSocketClient</a>* <big><b>ConnectToGashSocket</b></big>(const char* szAddress, int nPort, int nMaxPacketSize)<br><div style="margin-left: 80px;"><font color=brown> Connect to a Gash socket. (Adds a layer on top of TCP to guarantee same-size packet delivery)</font></div><br><a href="type_GSocketClient.html">GSocketClient</a>* <big><b>ConnectToTCPSocket</b></big>(const char* szAddress, int nPort)<br><div style="margin-left: 80px;"><font color=brown> Connect to a TCP socket</font></div><br><a href="type_GSocketClient.html">GSocketClient</a>* <big><b>ConnectToUDPSocket</b></big>(const char* szAddress, int nPort)<br><div style="margin-left: 80px;"><font color=brown> Connect to a UDP socket</font></div><br></div><br><big><big><i>Constructors (non-public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GSocketClient</b></big>(bool bUDP, int nMaxPacketSize)<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GSocketClient</b></big>()<br></div><br><big><big><i>Virtual (non-public)</i></big></big><br><div style="margin-left: 40px;">bool <big><b>Receive</b></big>(unsigned char* pBuf, int len)<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">int <big><b>GetMessageCount</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Returns the number of messages waiting to be received</font></div><br>char* <big><b>GetNextMessage</b></big>(unsigned int* pnSize)<br><div style="margin-left: 80px;"><font color=brown> Receive the next message. (You are responsible to delete the buffer this returns)</font></div><br>bool <big><b>Send</b></big>(const void* pBuf, int nLen)<br><div style="margin-left: 80px;"><font color=brown> Send some data</font></div><br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">void <big><b>QueueMessage</b></big>(unsigned char* pBuf, int nLen)<br></div><br></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -