CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: David White <[EMAIL PROTECTED]> 04/08/28 04:26:14
Modified files:
src : network.cpp
Log message:
made better error messages for machines that cannot bind to local ports
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/network.cpp.diff?tr1=1.40&tr2=1.41&r1=text&r2=text
Patches:
Index: wesnoth/src/network.cpp
diff -u wesnoth/src/network.cpp:1.40 wesnoth/src/network.cpp:1.41
--- wesnoth/src/network.cpp:1.40 Wed Aug 18 02:51:23 2004
+++ wesnoth/src/network.cpp Sat Aug 28 04:26:14 2004
@@ -207,7 +207,8 @@
TCPsocket sock = SDLNet_TCP_Open(&ip);
if(!sock) {
- throw error("Could not connect to host");
+ throw error(hostname == NULL ? "Could not bind to port" :
+ "Could not connect to host");
} else {
//TODO: add code in here which sets the socket to non-blocking
}