added diagnostics
This commit is contained in:
parent
527594d2aa
commit
c65592c51a
1 changed files with 2 additions and 0 deletions
|
@ -85,7 +85,9 @@ connection connect(const std::string& host, int port)
|
|||
throw error(SDLNet_GetError());
|
||||
}
|
||||
|
||||
std::cerr << "opening connection\n";
|
||||
TCPsocket sock = SDLNet_TCP_Open(&ip);
|
||||
std::cerr << "opened connection okay\n";
|
||||
if(!sock) {
|
||||
throw error(SDLNet_GetError());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue