2b911105a7Use 'send()' or 'sendto()' depending on whether or not the socket is already connected to a remote addressAadhavan Srinivasan2025-07-18 11:11:21 -04:00
0e7ebb4d78Finished integrating check_server() and check_client(), check_server_client() has been commented out.Aadhavan Srinivasan2024-03-17 23:33:18 -04:00
ec2f3320e3Replaced display_text_centered() with the environment-agnostic display_text() function; Changed function to include parameter to indicate environment typeAadhavan Srinivasan2024-03-17 23:31:56 -04:00
43ba4aba0cCreated a file that contains functions for agnostic text outputAadhavan Srinivasan2024-03-17 18:09:01 -04:00
c2bedb0601Wrote the check_num_args() function; still need to integrate it into the program. Also wrote a help text that is printed with -h flag.Aadhavan Srinivasan2024-03-17 00:30:08 -04:00
94e08f3863Used blocking recv here, to ensure that we wait for the server to respondRockingcool2024-03-12 10:02:53 -05:00
a847da5339Added support for printing out the peer's IPv6 address; replaced struct sockaddr with struct sockaddr_storageRockingcool2024-03-12 10:02:23 -05:00
550643281eReplace all instances of sockaddr with sockaddr_storageRockingcool2024-03-12 09:44:41 -05:00
00d20ebc88Used the non-blocking recv function, to ensure that the game doesn't hang if the server doesn't respond.Rockingcool2024-03-12 09:43:48 -05:00
839efc3c44Replaced all instances of struct sockaddr with struct sockaddr_storage, since it can fit v6 addresses as well. Cast values accordingly.Rockingcool2024-03-12 09:43:16 -05:00
24b2a83044Used a sockaddr_storage struct instead of a sockaddr struct, since the latter is not big enough for IPv6Rockingcool2024-03-12 00:25:41 -05:00
4001135451Integrated upstream changes, since I forgot to pull before making local changes.Rockingcool2024-03-11 01:32:56 -05:00
66d7585297Removed IP version checking code (since this is handled in the Sock constructor), and allowed server (but not client, yet) to quit game before round startRockingcool2024-03-11 01:29:56 -05:00
727aeafdb9Updated Server and Client constructor callsRockingcool2024-03-11 01:28:29 -05:00
9a12edcdb1Started working on better error handling, by throwing exceptions and displaying error messages in the GUIAadhavan Srinivasan2024-03-09 11:05:04 -05:00
eeae444b1dMoved display_text_centered() into a separate file, since I could possibly extend this file with other raygui helper functionsAadhavan Srinivasan2024-03-09 11:03:27 -05:00
f9d5e8cdebConverted easysock from CPP to C, because it was mostly just C code anywaysAadhavan Srinivasan2024-03-09 11:02:50 -05:00
352d3f26f1Moved struct definition to separate file, and added check for displaying GUIAadhavan Srinivasan2024-03-08 14:46:30 -05:00
788b334e7cRemoved sign file, since it only contained one function. This function has been moved to main.cppAadhavan Srinivasan2024-03-08 14:46:26 -05:00
0e9088beb6Added comments, and added a way to use the bundled raylib, even if we are building a dynamically linked versionAadhavan Srinivasan2024-03-08 14:44:17 -05:00
7812611fe6Created an implementation and header file to check the user input, if it is entered through the GUIAadhavan Srinivasan2024-03-08 14:43:45 -05:00
bc0d644399Replaced compound literal initialization of 'Rectangle' and 'Vector2' types (which is only valid in C), with braced-initialization (valid in C++)Aadhavan Srinivasan2024-03-08 08:20:52 -05:00