Removed unnecessary comment

master
Aadhavan Srinivasan 9 months ago
parent d842485103
commit fd4ad04aeb

@ -20,7 +20,6 @@ Sock::~Sock() {}
parameters. The address version (IPv4 or IPv6) is determined based on the given address. */ parameters. The address version (IPv4 or IPv6) is determined based on the given address. */
Sock::Sock(char protocol, const char* address, int port) { Sock::Sock(char protocol, const char* address, int port) {
/* Error checking */
this->ip_ver = check_ip_ver(address); this->ip_ver = check_ip_ver(address);
if (ip_ver != 4 && ip_ver != 6) { if (ip_ver != 4 && ip_ver != 6) {
@ -33,7 +32,6 @@ Sock::Sock(char protocol, const char* address, int port) {
throw std::invalid_argument("Invalid protocol"); throw std::invalid_argument("Invalid protocol");
} }
this->ip_ver = ip_ver;
this->protocol = protocol; this->protocol = protocol;
this->port = port; this->port = port;
this->address = std::string(address); this->address = std::string(address);

Loading…
Cancel
Save