100dc94bd3
Add function definition to header file
2025-07-18 11:11:45 -04:00
fa0cadfabf
Moved serialization files into submodule
2024-04-11 13:09:51 -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
8401f74922
Define WIN32_LEAN_AND_MEAN to avoid including windows.h, when including winsock2.h
2024-03-13 15:10:16 -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
24b2a83044
Used a sockaddr_storage struct instead of a sockaddr struct, since the latter is not big enough for IPv6
2024-03-12 00:25:41 -05:00
54f7dbe7ee
Modified recvAllNB() to return an empty string (instead of NULL) if there is nothing to read
2024-03-12 00:13:56 -05:00
6f292699f8
Updated header file to reflect new function
2024-03-11 13:19:07 -05:00
4001135451
Integrated upstream changes, since I forgot to pull before making local changes.
2024-03-11 01:32:56 -05:00
0058e7e411
Removed ip_ver parameter
...
I removed this because I realized I could just check the IP version inside
the constructor. The Sock constructor now checks the address passed to it.
Like before, if the address is neither v4 nor v6, an exception is thrown.
Since the Server and Client constructors call the Sock constructor, no change
was required in these files, except passing the right number of parameters.
2024-03-10 21:53:06 -05:00
6acbf90d80
Updated UNIX macro checks, to account for MacOS
2024-03-10 00:51:20 -06:00
eeae444b1d
Moved display_text_centered() into a separate file, since I could possibly extend this file with other raygui helper functions
2024-03-09 11:03:27 -05:00
f9d5e8cdeb
Converted easysock from CPP to C, because it was mostly just C code anyways
2024-03-09 11:02:50 -05:00
07ac3f9166
Filled out implementation of check_client function
2024-03-08 23:34:49 -05:00
1423cc19a0
Split timer into header and implementation file
2024-03-08 23:33:24 -05:00
788b334e7c
Removed sign file, since it only contained one function. This function has been moved to main.cpp
2024-03-08 14:46:26 -05:00
9de9353936
Added include guards to timer header file
2024-03-08 14:45:18 -05:00
7812611fe6
Created an implementation and header file to check the user input, if it is entered through the GUI
2024-03-08 14:43:45 -05:00
f4bbb6ef6a
Added a rudimentary timer implementation
2024-03-07 23:18:59 -05:00
e9da48d9a0
Added raygui header file, and dark mode header file
2024-03-07 18:09:27 -05:00
64aa4b1850
Replaced 'linux' with '__unix__' because the same header files are included on macOS as well.
2024-03-05 07:50:32 -05:00
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