Added default constructors; [for client] added code to throw an exception if socket creation was unsuccessful
This commit is contained in:
@@ -20,6 +20,8 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
Server() {}
|
||||
|
||||
Server(int ip_ver, char protocol, int port) {
|
||||
/* Error checking */
|
||||
if (ip_ver != 4 && ip_ver != 6) {
|
||||
|
Reference in New Issue
Block a user