|
|
@ -13,6 +13,10 @@ void Sock::create_socket() {
|
|
|
|
addrlen = sizeof(*dest);
|
|
|
|
addrlen = sizeof(*dest);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Virtual destructor, allows 'Server' and 'Client' to override this destructor */
|
|
|
|
|
|
|
|
Sock::~Sock() {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Constructor - This function initializes the object attributes with the given
|
|
|
|
/* Constructor - This function initializes the object attributes with the given
|
|
|
|
parameters. It throws an exception if an IPv4 address was given, but the type
|
|
|
|
parameters. It throws an exception if an IPv4 address was given, but the type
|
|
|
|
given is IPv6 (or the other way around). */
|
|
|
|
given is IPv6 (or the other way around). */
|
|
|
|