From 1499739527b04fa1387806b3d957b329ca36fa95 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 16:30:19 +0000 Subject: Minor changes to udpsocket test program. --- src/tests/udpsocket.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tests/udpsocket.cpp b/src/tests/udpsocket.cpp index 63aa576..682444f 100644 --- a/src/tests/udpsocket.cpp +++ b/src/tests/udpsocket.cpp @@ -1,6 +1,8 @@ #include "bu/udpsocket.h" #include "bu/sio.h" +#include + using namespace Bu; int main( int argc, char *argv[] ) @@ -26,7 +28,8 @@ int main( int argc, char *argv[] ) for(;;) { - udp.write("hello", 5 ); + int iWrote = udp.write("hello", 5 ); + sio << "Wrote(" << iWrote << "): " << strerror( errno ) << sio.nl; usleep( 250000 ); } } -- cgit v1.2.3