Skip to content

Commit

Permalink
Add listening port and protocol to UDPSocket copy constructor and ass…
Browse files Browse the repository at this point in the history
…ignment operator.
  • Loading branch information
Kilemonn committed Jul 8, 2024
1 parent 243aebf commit 3e01d03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/socket/UDPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ namespace kt
{
this->bound = socket.bound;
this->receiveSocket = socket.receiveSocket;
this->listeningPort = socket.listeningPort;
this->protocolVersion = socket.protocolVersion;

#ifdef _WIN32
WSADATA wsaData{};
Expand All @@ -24,6 +26,8 @@ namespace kt
{
this->bound = socket.bound;
this->receiveSocket = socket.receiveSocket;
this->listeningPort = socket.listeningPort;
this->protocolVersion = socket.protocolVersion;

return *this;
}
Expand Down

0 comments on commit 3e01d03

Please sign in to comment.