summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-01-20 16:30:19 +0000
committerMike Buland <eichlan@xagasoft.com>2011-01-20 16:30:19 +0000
commit1499739527b04fa1387806b3d957b329ca36fa95 (patch)
tree8f24a24fd7123ae255239a6adadccf03ccd5d950
parent400f12a9d100d48509a48188fcff7f1b820d5826 (diff)
downloadlibbu++-1499739527b04fa1387806b3d957b329ca36fa95.tar.gz
libbu++-1499739527b04fa1387806b3d957b329ca36fa95.tar.bz2
libbu++-1499739527b04fa1387806b3d957b329ca36fa95.tar.xz
libbu++-1499739527b04fa1387806b3d957b329ca36fa95.zip
Minor changes to udpsocket test program.
-rw-r--r--src/tests/udpsocket.cpp5
1 files changed, 4 insertions, 1 deletions
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 @@
1#include "bu/udpsocket.h" 1#include "bu/udpsocket.h"
2#include "bu/sio.h" 2#include "bu/sio.h"
3 3
4#include <errno.h>
5
4using namespace Bu; 6using namespace Bu;
5 7
6int main( int argc, char *argv[] ) 8int main( int argc, char *argv[] )
@@ -26,7 +28,8 @@ int main( int argc, char *argv[] )
26 28
27 for(;;) 29 for(;;)
28 { 30 {
29 udp.write("hello", 5 ); 31 int iWrote = udp.write("hello", 5 );
32 sio << "Wrote(" << iWrote << "): " << strerror( errno ) << sio.nl;
30 usleep( 250000 ); 33 usleep( 250000 );
31 } 34 }
32 } 35 }