Added Connection Codes
Private methods dont have capital letters and are words are separated by underscores Added id's to TcpClient's class Removed ptr from TcpClient and Server Worked on TcpServer Theres now a default server port Added ReceiveMessage function to TcpClient to receive only 1 message Fixed VoidNetClientAPI Receive function
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
|
||||
struct VoidNetClientAPI
|
||||
{
|
||||
static bool Connect(const std::string &ip, uint16 port = default_port);
|
||||
static bool Connect(const std::string &ip, uint16 port = default_client_port);
|
||||
static void Disconnect();
|
||||
|
||||
static void SendMessageToServer(byte tag, byte subject, void *data);
|
||||
@ -32,7 +32,7 @@ struct VoidNetClientAPI
|
||||
static void Receive();
|
||||
|
||||
private:
|
||||
static void ProcessAllData();
|
||||
static void process_all_data();
|
||||
|
||||
static TcpClient *client;
|
||||
static uint16 id;
|
||||
|
||||
Reference in New Issue
Block a user