Commit 0d3b801a authored by Dafydd Harries's avatar Dafydd Harries

UDP echo server: print error when binding to port failed

darcs-hash:20070113111728-c9803-b26d70602ccca6d5a790439addca23c9312d3256.gz
parent f62b9ca9
...@@ -18,7 +18,10 @@ main (void) ...@@ -18,7 +18,10 @@ main (void)
sin.sin_port = htons (9999); sin.sin_port = htons (9999);
if (!man.init (&man, &sock, &sin)) if (!man.init (&man, &sock, &sin))
g_assert_not_reached (); {
g_debug ("failed to find to port 9999: server already running?");
return 1;
}
for (;;) for (;;)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment