Commit Graph

12 Commits

Author SHA1 Message Date
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
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
f0e30f28e9 Updated header files to reflect recent change in implementation files 2024-02-21 22:26:59 -05:00
98abf50da5 Completely rewrote Server class, and split the class into header and implementation 2024-02-19 21:28:07 -05:00
a47e598b5c Removed unnecessary comments 2024-02-15 07:48:10 -05:00
26427fa257 Added include guards to header files 2024-02-14 18:32:01 -05:00
ee0c106236 Made 'Client' and 'Server' children of 'Sock' class 2024-02-14 08:08:58 -05:00
dda89963c8 Added better error checking for IP version 2024-02-07 21:47:50 -05:00
735599aebf Fixed errors in call to 'check_ip_ver', and modified error handling 2024-02-06 09:43:42 -05:00
1359f22f71 Added address parameter to constructor, and added additional error handling 2024-02-06 07:50:18 -05:00
95dea026d9 Added default constructors; [for client] added code to throw an exception if socket creation was unsuccessful 2024-01-31 21:00:40 -05:00
c87c3ce3a2 Moved header files to source directory; converted easysock to CPP 2024-01-29 22:46:55 -05:00