aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 }