a5202ad85aAdd support for building a statically linked version of the game, by specifying a command-line flagAadhavan Srinivasan2024-03-05 22:26:40 -0500
91bf5e2ce1Fixed some commenting issues; Added code to detect if game was quit by peer and, if so, quit the game locallyAadhavan Srinivasan2024-03-01 22:35:31 -0500
50c090cd88Added a boolean field to the struct, to indicate whether the game should be quit or notAadhavan Srinivasan2024-03-01 22:34:33 -0500
24c1dd6391Removed unnecessary variable, and added a (optional) dependency for the ws2_32 library, which is required on WindowsAadhavan Srinivasan2024-02-29 21:49:21 -0600
8e3488b904Added a virtual destructor to the Sock class, which would allow Server and Client to override itAadhavan Srinivasan2024-02-29 20:46:14 -0600
69e70eb206Changed the recvAll return type from std::string to char pointer, and created a non-blocking version of the functionAadhavan Srinivasan2024-02-28 00:05:53 -0500
a37ec79f09Changed 'recvAll' return type from std::string to char pointer, and created a non-blocking version of the functionAadhavan Srinivasan2024-02-28 00:04:43 -0500
ba667d020dGame is mostly finished, added a ton of code for reading and applying peer position.Aadhavan Srinivasan2024-02-28 00:00:53 -0500
effeea73b9Made the serialization code cleaner, and fixed a bug where data was overwritten by the null pointerAadhavan Srinivasan2024-02-28 00:00:28 -0500
c6bbe82d25Made the 'recvAll' function return a char pointer instead of a std::string, this is better for portability. Also created a non-blocking version of the function.Aadhavan Srinivasan2024-02-27 23:59:53 -0500
6ad56fb9efStarted working on client-server communication; so far, I can send the position of client to server, and vice-versaAadhavan Srinivasan2024-02-23 11:16:21 -0500
6155cb0463Wrote code to null-terminate the string sent in sendAll, and the string received in recvAllAadhavan Srinivasan2024-02-23 11:15:45 -0500
89e1e8d45eWorked on further implementation of the network side of things.Aadhavan Srinivasan2024-02-21 22:29:03 -0500
0c726be147Updated header file to reflect recent change in implementation fileAadhavan Srinivasan2024-02-21 22:28:09 -0500
7e362f0ed9Moved the private functions out of the anonymous namespace, because I need to use them in other placesAadhavan Srinivasan2024-02-21 22:27:49 -0500
f3ad4fbf99Defined constants for TCP and UDP, instead of using the characters themselvesAadhavan Srinivasan2024-02-21 22:27:23 -0500
f0e30f28e9Updated header files to reflect recent change in implementation filesAadhavan Srinivasan2024-02-21 22:26:59 -0500
9954a18171Made the sendAll and recvAll functions in sock.cpp use variables set by the children, rather than having the functions pass parametersAadhavan Srinivasan2024-02-21 22:25:52 -0500
13da015683Renamed base-helpers to numeric_base, and separated numeric_base into header and implementation filesAadhavan Srinivasan2024-02-15 09:13:51 -0500
195d6c4b4bSeparated 'Sock' file into header and implementation file, and added include guards to header fileAadhavan Srinivasan2024-02-14 18:30:09 -0500
fc041539c5Changed Sock to Sock* in GameType struct to allow it to be set to nullAadhavan Srinivasan2024-02-14 08:22:25 -0500
cb0fe1af6bDefined a 'GameType' struct that can hold both the mode, and the relevant socket, to enable polymorphism when calling socket methodsAadhavan Srinivasan2024-02-14 08:09:34 -0500
912435bfa3Added new exception for invalid IP, used it if IP address is neither v4 nor v6Aadhavan Srinivasan2024-02-07 21:55:05 -0500
48739f6026Created enum to denote if game is in client or server mode, and added error checking, to check if IP address is validAadhavan Srinivasan2024-02-07 21:48:43 -0500