From 5680aa99001cb50c707c4187cd8ada0c41a573dd Mon Sep 17 00:00:00 2001 From: Tobias Frust Date: Thu, 30 Jun 2016 10:13:01 +0200 Subject: implemented virtual DetectorModule with simple send via udp --- src/main_server.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main_server.cpp') diff --git a/src/main_server.cpp b/src/main_server.cpp index b90de52..267023f 100644 --- a/src/main_server.cpp +++ b/src/main_server.cpp @@ -7,19 +7,19 @@ int main (int argc, char *argv[]){ std::cout << "Receiving UDP packages: " << std::endl; - std::string address = "localhost"; - int port = 1234; + std::string address = "10.0.0.10"; + int port = 4000; UDPServer server = UDPServer(address, port); - std::size_t length{8000}; + std::size_t length{16*500}; - char buf[length]; + unsigned short buf[length]; - server.recv(buf, length); + server.recv(buf, length*sizeof(unsigned short)); for(auto i = 0; i < length; i++){ - printf("%c", buf[i]); + printf("%i ", buf[i]); } printf("\n"); -- cgit v1.2.3