246 Commits

Author SHA1 Message Date
a0a658ca8a Added dynamic libraries for macos 2025-07-18 14:19:19 -04:00
100dc94bd3 Add function definition to header file 2025-07-18 11:11:45 -04:00
2b911105a7 Use 'send()' or 'sendto()' depending on whether or not the socket is
already connected to a remote address
2025-07-18 11:11:21 -04:00
af242cb812 Rename function 2025-07-18 11:10:49 -04:00
a7e252acd2 Add method to return whether or not a socket is connected to a remote
address
2025-07-18 11:09:56 -04:00
5fe24bffd9 Updated file paths 2024-04-11 13:26:26 -04:00
6e0b7f8394 Updated include path, and set the type if the game mode is M_SINGLE 2024-04-11 13:26:18 -04:00
4b7880349d Moved submodule location 2024-04-11 13:15:34 -04:00
14131d8942 Updated README 2024-04-11 13:13:06 -04:00
6331d81ba3 Updated serialization include 2024-04-11 13:10:08 -04:00
fa0cadfabf Moved serialization files into submodule 2024-04-11 13:09:51 -04:00
b113098c7b Added netpong-serialization submodule 2024-04-11 13:08:58 -04:00
ab7b40f778 Updated TODO 2024-03-26 10:06:34 -04:00
50ed0b89e9 Updated TODO 2024-03-20 00:10:40 -04:00
1ab22651ae Updated TODO 2024-03-20 00:07:23 -04:00
b6439bf7d5 Free memory allocated with malloc() 2024-03-20 00:07:23 -04:00
1641cef13b Changed zip command, so that only one parent directory is included 2024-03-19 10:02:18 -05:00
f42ac94a45 Added check to release script, to check if DLL exists v0.2 2024-03-19 09:02:48 -05:00
4ff840e91e Fixed boneheaded mistake, where I set REUSEADDR for UDP instead of TCP 2024-03-18 16:03:19 -04:00
fd4ad04aeb Removed unnecessary comment 2024-03-18 16:02:57 -04:00
d842485103 Throw errno instead of errno * -1, if an error is encountered with sending or receiving 2024-03-18 13:43:09 -04:00
3bf65ab8f9 Updated TODO 2024-03-18 13:27:14 -04:00
f3dcbc3b3e Removed check_server_client() function.
It has been replaced by check_server() and check_client().
2024-03-18 13:25:51 -04:00
463dfbd3e5 IPv6 support for RecvAllNB() 2024-03-18 13:22:26 -04:00
d3716536f9 Minor changes 2024-03-18 13:22:12 -04:00
8805402241 Return after catching exception 2024-03-18 13:22:01 -04:00
3d0aeac943 Ensure that REUSEADDR flag is only applied for TCP 2024-03-18 13:21:42 -04:00
c490eaa301 Updated TODO 2024-03-17 23:35:05 -04:00
0e7ebb4d78 Finished integrating check_server() and check_client(), check_server_client() has been commented out. 2024-03-17 23:34:24 -04:00
c94138ad8b Included new file in compilation process 2024-03-17 23:32:56 -04:00
cfbc726dca Renamed functions to make their purpose more explicit 2024-03-17 23:32:37 -04:00
ec2f3320e3 Replaced display_text_centered() with the environment-agnostic display_text() function; Changed function to include parameter to indicate environment type 2024-03-17 23:31:56 -04:00
43ba4aba0c Created a file that contains functions for agnostic text output 2024-03-17 18:09:07 -04:00
c2bedb0601 Wrote the check_num_args() function; still need to integrate it into the program. Also wrote a help text that is printed with -h flag. 2024-03-17 00:30:25 -04:00
77a147e08f Updated TODO 2024-03-17 00:27:35 -04:00
26999a1145 Started working on function to check the number of command-line arguments 2024-03-16 10:49:21 -05:00
f41c3d22e2 Updated TODO 2024-03-16 10:24:59 -05:00
9f1f313091 Cast sockaddr to sockaddr_storage 2024-03-13 15:14:38 -05:00
8401f74922 Define WIN32_LEAN_AND_MEAN to avoid including windows.h, when including winsock2.h 2024-03-13 15:10:16 -05:00
d2dd95b7cc Replaced global_args with project_args to prevent build error on MinGW 2024-03-13 15:09:48 -05:00
5cf11ac014 Added stdint header file 2024-03-13 14:36:24 -05:00
0dbf8936fd Added a #define for math constants on MinGW 2024-03-13 14:36:10 -05:00
3ab97b3853 Compile the application if it isn't already compiled 2024-03-13 13:00:28 -05:00
aea8f3dfd2 Updated TODO 2024-03-12 10:05:39 -05:00
94e08f3863 Used blocking recv here, to ensure that we wait for the server to respond 2024-03-12 10:02:53 -05:00
a847da5339 Added support for printing out the peer's IPv6 address; replaced struct sockaddr with struct sockaddr_storage 2024-03-12 10:02:23 -05:00
550643281e Replace all instances of sockaddr with sockaddr_storage 2024-03-12 09:44:41 -05:00
ef869710e5 Replaced recvAll call with recvAllNB 2024-03-12 09:44:15 -05:00
00d20ebc88 Used the non-blocking recv function, to ensure that the game doesn't hang if the server doesn't respond. 2024-03-12 09:43:48 -05:00
839efc3c44 Replaced all instances of struct sockaddr with struct sockaddr_storage, since it can fit v6 addresses as well. Cast values accordingly. 2024-03-12 09:43:16 -05:00