Skip to content

Commit

Permalink
Add print showing what port the server is using
Browse files Browse the repository at this point in the history
  • Loading branch information
FergusonAJ committed Nov 1, 2023
1 parent 88792dc commit 6a73e33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/Interfaces/NetWorth/NetworkInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace netWorth{
* @return true if successful
*/
virtual bool BindSocket(UdpSocket &socket, unsigned short port) {
std::cout << "Binding socket on port: " << port << std::endl;
if (socket.bind(port) != Socket::Status::Done) {
std::cerr << "Failed to bind socket" << std::endl;
return false;
Expand Down

0 comments on commit 6a73e33

Please sign in to comment.