diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-01-11 19:27:48 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-01-11 20:17:43 +0100 |
commit | 8639fee50452ac51c9963e7cb51e82989efbb5f1 (patch) | |
tree | 10aea29fb2e62b6d25100262ed8f353bde1aa355 /tests | |
parent | ca46896cfe881990defb34b7cd6c7e337f1bcc76 (diff) |
Remove UDDSocket class
This class is not used anymore in osmo-trx, so we can safely remove it.
Change-Id: I67f90aa3d6a2a5e92292436d10928e0705c8f8ff
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CommonLibs/SocketsTest.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/tests/CommonLibs/SocketsTest.cpp b/tests/CommonLibs/SocketsTest.cpp index b51587d..235b8f3 100644 --- a/tests/CommonLibs/SocketsTest.cpp +++ b/tests/CommonLibs/SocketsTest.cpp @@ -53,38 +53,13 @@ void *testReaderIP(void *) return NULL; } - - -void *testReaderUnix(void *) -{ - UDDSocket readSocket("testDestination"); - readSocket.nonblocking(); - int rc = 0; - while (rc<gNumToSend) { - char buf[MAX_UDP_LENGTH+1]; - buf[MAX_UDP_LENGTH] = '\0'; - int count = readSocket.read(buf, MAX_UDP_LENGTH); - if (count>0) { - CERR("read: " << buf); - rc++; - } else { - sleep(2); - } - } - return NULL; -} - - int main(int argc, char * argv[] ) { Thread readerThreadIP; readerThreadIP.start(testReaderIP,NULL); - Thread readerThreadUnix; - readerThreadUnix.start(testReaderUnix,NULL); UDPSocket socket1("127.0.0.1", 5061, "127.0.0.1", 5934); - UDDSocket socket1U("testSource","testDestination"); CERR("socket1: " << socket1.port()); @@ -93,12 +68,10 @@ int main(int argc, char * argv[] ) for (int i=0; i<gNumToSend; i++) { socket1.write("Hello IP land"); - socket1U.write("Hello Unix domain"); - sleep(1); + sleep(1); } readerThreadIP.join(); - readerThreadUnix.join(); printf("Done\n"); } |