Commit Graph

52 Commits

Author SHA1 Message Date
50c090cd88 Added a boolean field to the struct, to indicate whether the game should be quit or not 2024-03-01 22:34:33 -05:00
2c735896df Used unsigned int instead of int when converting to base-10 2024-03-01 11:31:18 -05:00
8e3488b904 Added a virtual destructor to the Sock class, which would allow Server and Client to override it 2024-03-01 11:31:15 -05:00
047ff602ed Changed 'char*' to 'const char*' because that's what the underlying functions use 2024-03-01 11:31:01 -05:00
4b3d5387a1 Changed code to support Windows libraries and functions as well 2024-02-29 16:38:36 -05:00
69e70eb206 Changed the recvAll return type from std::string to char pointer, and created a non-blocking version of the function 2024-02-28 00:05:53 -05:00
349b0b78db Created method to set position of paddle 2024-02-28 00:05:05 -05:00
a37ec79f09 Changed 'recvAll' return type from std::string to char pointer, and created a non-blocking version of the function 2024-02-28 00:04:43 -05:00
c6bbe82d25 Made 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. 2024-02-27 23:59:53 -05:00
edfd70c3cc Created a simple data serialization library, to serialize and deserialize the data to be sent 2024-02-26 21:38:01 -05:00
b47b0eab28 Added new exception constants 2024-02-21 22:28:29 -05:00
0c726be147 Updated header file to reflect recent change in implementation file 2024-02-21 22:28:09 -05:00
f3ad4fbf99 Defined constants for TCP and UDP, instead of using the characters themselves 2024-02-21 22:27:23 -05:00
f0e30f28e9 Updated header files to reflect recent change in implementation files 2024-02-21 22:26:59 -05:00
350b51e28b Added additional code to easysock library 2024-02-19 21:55:22 -05:00
b07b3fc584 Renamed 'connect-helpers' to 'connect_code' 2024-02-19 21:41:15 -05:00
41f44797a1 Split connect_code file into header and implementation 2024-02-19 21:39:37 -05:00
11d0a1a5ab Completely rewrote Client class, and split the class into header and implementation 2024-02-19 21:29:41 -05:00
98abf50da5 Completely rewrote Server class, and split the class into header and implementation 2024-02-19 21:28:07 -05:00
98160f0071 Renamed 'math-helpers.hpp' to 'sign.hpp' 2024-02-15 09:47:47 -05:00
cacc4f9d33 Included string header instead of iostream header, as this file doesn't need iostream 2024-02-15 09:47:25 -05:00
acf8271126 Renamed 'math-helpers.hpp' to 'sign.hpp' and updated main.cpp to reflect the change 2024-02-15 09:46:53 -05:00
3a7793bde8 Renamed header file include 2024-02-15 09:46:14 -05:00
13da015683 Renamed base-helpers to numeric_base, and separated numeric_base into header and implementation files 2024-02-15 09:13:51 -05:00
a47e598b5c Removed unnecessary comments 2024-02-15 07:48:10 -05:00
17b391c1c3 Split 'paddle' class into header and implementation files 2024-02-15 07:47:35 -05:00
86411ae907 Split 'Ball' class into header and implementation files 2024-02-15 07:47:16 -05:00
26427fa257 Added include guards to header files 2024-02-14 18:32:01 -05:00
195d6c4b4b Separated 'Sock' file into header and implementation file, and added include guards to header file 2024-02-14 18:30:09 -05:00
ee0c106236 Made 'Client' and 'Server' children of 'Sock' class 2024-02-14 08:08:58 -05:00
2e6b01a9bb Defined a parent 'socket' class that both 'Client' and 'Server' can inherit from 2024-02-14 08:08:38 -05:00
f9bfefe3ad Included additional header 2024-02-14 08:07:54 -05:00
4378aa3c6a Added code to deal with improperly formatted codes 2024-02-11 23:23:00 -05:00
c8bc17fbce Added additional functions for windows-specific actions 2024-02-11 23:22:39 -05:00
912435bfa3 Added new exception for invalid IP, used it if IP address is neither v4 nor v6 2024-02-07 21:55:05 -05:00
dda89963c8 Added better error checking for IP version 2024-02-07 21:47:50 -05:00
6ba3452087 Added new exception constant 2024-02-06 09:44:08 -05:00
9a2257780f Fixed errors in call to 'check_ip_ver' 2024-02-06 09:43:53 -05:00
735599aebf Fixed errors in call to 'check_ip_ver', and modified error handling 2024-02-06 09:43:42 -05:00
ca952e8814 Modified header file to match change in CPP file 2024-02-06 09:43:08 -05:00
1359f22f71 Added address parameter to constructor, and added additional error handling 2024-02-06 07:50:18 -05:00
7c741de587 Added code to throw additional exceptions 2024-02-06 07:49:54 -05:00
fbea42df25 Change encoded base from hexadecimal to base 32 2024-02-06 07:25:52 -05:00
74b9ae5fe8 No real change 2024-02-06 07:25:33 -05:00
6cfdddc204 Added new exception const 2024-02-06 07:24:57 -05:00
cb525c4097 Added code to help convert between number bases 2024-02-06 07:24:35 -05:00
bad8d4a7cc Added new exception const 2024-02-04 20:32:24 -05:00
5c09b782b9 Added helper file for connect code 2024-02-04 20:32:10 -05:00
6945ebb2c1 Added exception_consts file 2024-01-31 21:02:40 -05:00
e6f328ea1d Added raylib-cpp header files to my project 2024-01-31 21:01:35 -05:00