Commit Graph

13 Commits

Author SHA1 Message Date
0ac8b4f6e8 Added Handshake class
Fixed NetworkBuffer include
Fixed some data types
TcpClient: Added SendBytes, SetOnDisconnectCallback, SetOnConnectCallback, SetOnMessageCallback methods and made callback std::function's private and fixed some method implementations
Added AcceptConnection on TcpServer
Fixed TcpServer AddToClientsList
2016-08-01 00:28:22 +01:00
bb6a2a25d3 Massive update:
Changed all byte pointers to vectors
NetworkMessage: DecodeMessage and EncodeMessage are now static
TcpClient: Fixed OnMessage function
NetworkMessage: merged both private methods into 1 method
2016-07-31 01:28:36 +01:00
9e5cd40847 Added DataAvailable method in TcpClient which will return the number of bytes available in the stream
Config functions are now inline
NetworkMessage and NetworkBuffer are being reworked
2016-07-23 13:15:59 +01:00
c83b4101d0 New configuration variable, log_to_file
Shutdown function added to TcpClient
Shutdown function added to TcpServer
Renamed socket to server_tcp_socket in TcpServer
Implemented ConfigReader class
2016-07-23 12:35:20 +01:00
6fa7872a6d 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
2016-07-22 00:32:53 +01:00
3f99e8a178 Removed VoidCode enum, added missing tcp client windos code and missing if macro in TcpClient.hpp 2016-07-20 22:20:50 +01:00
b42b26cada Removed old callbacks
Implemented new callback methods
Made ReceiveData renamed to ReceiveMessages, returns void amd calls the callback methods
2016-07-18 21:48:34 +01:00
a1249ab5e9 Got async methods working for send in TcpClientWindows
All SendMessage functions are now void
2016-07-18 20:05:22 +01:00
c27ce40bab Trying to implement the sender but its not working the way i want 2016-07-18 03:44:27 +01:00
a211400964 Added Development information for me to dont forget things xD
Added AllAndMe DistributionType
Added a ThreadPool class
Added VoidNetClientAPI
2016-07-18 01:13:20 +01:00
72aa8ee0c4 Got tcp receiving for windows done
Callbacks are done - maybe ill add a few more later - i dont know if they will work correctly yet
Fixed the Serialization class
Added internal tags - for now it only has CONNECT and DISCONNECT - maybe ill add more later
Fixed some data type parameters in some functions
2016-07-17 19:59:22 +01:00
16ed3619b3 Added Tests project, Callback functions are in progress, NetworkBuffer is done, Network Message is WIP but already has a lot of code, Serializer is done (subject to change), Utility classes are being made, and TcpClientWindows is WIP.
Every single piece of code wrote today may or not change, but it will probably change because ill find a better way to do it xD
2016-07-17 02:46:42 +01:00
97262ee8c6 Added initialization, data type defenitons and started with TcpClient 2016-07-16 23:26:56 +01:00