Parent Directory | Revision Log | Patch
revision 2515 by schoenebeck, Wed Feb 5 20:45:18 2014 UTC | revision 2517 by schoenebeck, Fri Feb 7 19:53:09 2014 UTC | |
---|---|---|
# | Line 44 bool LSCPClient::connect(String host, in | Line 44 bool LSCPClient::connect(String host, in |
44 | addr.sin_port = htons(port); | addr.sin_port = htons(port); |
45 | if (::connect(hSocket, (sockaddr*)&addr, sizeof(addr)) < 0) { | if (::connect(hSocket, (sockaddr*)&addr, sizeof(addr)) < 0) { |
46 | std::cerr << "Error: Could not connect to host \"" << host << "\".\n"; | std::cerr << "Error: Could not connect to host \"" << host << "\".\n"; |
47 | std::cerr << "Is linuxsampler running and listening on port " << port << " ?\n"; | |
48 | disconnect(); | disconnect(); |
49 | return false; | return false; |
50 | } | } |
|
ViewVC Help | |
Powered by ViewVC |