Aadhavan Srinivasan
24b2a83044
Used a sockaddr_storage struct instead of a sockaddr struct, since the latter is not big enough for IPv6
10 months ago
Aadhavan Srinivasan
7d4fd929c7
Updated TODO
10 months ago
Aadhavan Srinivasan
54f7dbe7ee
Modified recvAllNB() to return an empty string (instead of NULL) if there is nothing to read
10 months ago
Aadhavan Srinivasan
06f44d385d
Allow user to quit in menu screen; better error handling.
...
I set up a try-catch to catch the exception thrown by the Server/Client when
it can't create a socket. I also used display_and_exit() to
automatically close the window after the text has been displayed.
10 months ago
Aadhavan Srinivasan
6f292699f8
Updated header file to reflect new function
10 months ago
Aadhavan Srinivasan
6a40a596c1
Added new function to display text then exit
10 months ago
Aadhavan Srinivasan
fc59a7221b
Removed unnecessary #include
10 months ago
Aadhavan Srinivasan
7f0898c81e
Updated TODO
10 months ago
Aadhavan Srinivasan
4001135451
Integrated upstream changes, since I forgot to pull before making local changes.
10 months ago
Aadhavan Srinivasan
66d7585297
Removed IP version checking code (since this is handled in the Sock constructor), and allowed server (but not client, yet) to quit game before round start
10 months ago
Aadhavan Srinivasan
727aeafdb9
Updated Server and Client constructor calls
10 months ago
Aadhavan Srinivasan
3bdfdb114c
Updated TODO
10 months ago
Aadhavan Srinivasan
f840ff9c00
Updated comment explaining function
10 months ago
Aadhavan Srinivasan
986e386098
Updated Server and Client constructor calls, so that they don't pass in the IP version
10 months ago
Aadhavan Srinivasan
53282727ec
Removed testing code
10 months ago
Aadhavan Srinivasan
d43dc41f25
Updated TODO
10 months ago
Aadhavan Srinivasan
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.
10 months ago
Aadhavan Srinivasan
764f343f5d
Updated TODO
10 months ago
Aadhavan Srinivasan
cdd1db6808
Implemented IPv6 address decoding algorithm
10 months ago
Aadhavan Srinivasan
ae044c1905
Convert character to upper-case before converting to decimal
10 months ago
Aadhavan Srinivasan
8011c5e8b9
Finished script to create and package statically linked binary on Linux
10 months ago
Aadhavan Srinivasan
24eda2d16a
Updated TODO
10 months ago
Aadhavan Srinivasan
418579a627
Added C++ standard as a compiler flag, which is apparently needed by compilers on macOS
10 months ago
Aadhavan Srinivasan
6acbf90d80
Updated UNIX macro checks, to account for MacOS
10 months ago
Aadhavan Srinivasan
2c7d1d0b43
Started working on client-side decoding of IPv6 code
10 months ago
Aadhavan Srinivasan
00b83e6de2
Added bash flag to fail if any command in the script fails
10 months ago
Aadhavan Srinivasan
9881567009
Created a script to build statically-linked binaries on Linux
10 months ago
Aadhavan Srinivasan
f23f307e17
Updated TODO
10 months ago
Aadhavan Srinivasan
dd658c9c1d
WROTE IN AIRPLANE: Checked edge case where the number is zero
10 months ago
Aadhavan Srinivasan
52f8034f4e
Rudimentary support for IPv6 in server socket creation
...
I haven't completely implemented it yet, but I did come up with a basic algorithm
to convert the IPv6 address into a 'code' form. I still have to write the code to
actually create the socket, though.
10 months ago
Aadhavan Srinivasan
8758060bfb
Updated TODO
10 months ago
Aadhavan Srinivasan
10f91fafd4
Updated README
10 months ago
Aadhavan Srinivasan
e9405b69e7
Updated README
10 months ago
Aadhavan Srinivasan
9a12edcdb1
Started working on better error handling, by throwing exceptions and displaying error messages in the GUI
10 months ago
Aadhavan Srinivasan
83a0d5beb4
Updated files to reflect change in easysock (from CPP to C)
10 months ago
Aadhavan Srinivasan
eeae444b1d
Moved display_text_centered() into a separate file, since I could possibly extend this file with other raygui helper functions
10 months ago
Aadhavan Srinivasan
f9d5e8cdeb
Converted easysock from CPP to C, because it was mostly just C code anyways
10 months ago
Aadhavan Srinivasan
9972e146d5
Updated TODO
10 months ago
Aadhavan Srinivasan
8848f0ff8c
Removed debug print statements, cleared background before drawing to screen, and added client GUI implementation
...
I removed a print statement that printed out every position of the ball, because it was no longer necessary.
I also added code to clear the background before drawing to the screen at the start of the game, to remove
any lingering un-erased objects. Finally, and most substantially, I finished the initial implementation of
the client-side GUI. The client should now be able to specify a connect code through the GUI, and connect
to the appropriate server.
10 months ago
Aadhavan Srinivasan
07ac3f9166
Filled out implementation of check_client function
10 months ago
Aadhavan Srinivasan
9e0990156e
Removed unnecessary print message, and added timer.c to source files
10 months ago
Aadhavan Srinivasan
1423cc19a0
Split timer into header and implementation file
10 months ago
Aadhavan Srinivasan
352d3f26f1
Moved struct definition to separate file, and added check for displaying GUI
...
I moved the GameType struct (and the Mode enum) to a separate file, as I will need
to use it in the check_server and check_client functions as well. I also added the
signum function (which was previously in sign.hpp) to this file, since it was the only
function in sign.hpp. Finally, I added a check, that will only display the GUI, if the
user didn't provide any command-line arguments.
10 months ago
Aadhavan Srinivasan
788b334e7c
Removed sign file, since it only contained one function. This function has been moved to main.cpp
10 months ago
Aadhavan Srinivasan
9de9353936
Added include guards to timer header file
10 months ago
Aadhavan Srinivasan
a3392308c4
Updated TODO
10 months ago
Aadhavan Srinivasan
0e9088beb6
Added comments, and added a way to use the bundled raylib, even if we are building a dynamically linked version
10 months ago
Aadhavan Srinivasan
7812611fe6
Created an implementation and header file to check the user input, if it is entered through the GUI
10 months ago
Aadhavan Srinivasan
bc0d644399
Replaced compound literal initialization of 'Rectangle' and 'Vector2' types (which is only valid in C), with braced-initialization (valid in C++)
10 months ago
Aadhavan Srinivasan
d05ba0daa1
Updated TODO
10 months ago