Move include files in debian packge into 'senf' subdirectory
[senf.git] / Examples / TCPClientServer / client.cc
index 0297c41..83fbde6 100644 (file)
@@ -3,6 +3,7 @@
 // Copyright (C) 2007
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+//     Thorsten Horstmann <thorsten.horstmann@fokus.fraunhofer.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 // Custom includes
 #include <iostream>
 #include <sstream>
-#include "Socket/TCPSocketHandle.hh"
-#include "Socket/INetAddressing.hh"
-#include "Packets/EthernetPacket.hh"
-
+#include "../../Socket/Protocols/INet/TCPSocketHandle.hh"
+#include "../../Socket/Protocols/INet/INetAddressing.hh"
 
 int main(int argc, char const * argv[])
 {
     try {
         for (int i=0; i<=1000; i++) {
             senf::TCPv4ClientSocketHandle sock;
-            sock.connect(senf::INet4Address("127.0.0.1", 4243));
+            sock.connect(senf::INet4SocketAddress("127.0.0.1:4243"));
             sock.protocol().linger(true);
             
             std::stringstream s;
@@ -51,3 +50,14 @@ int main(int argc, char const * argv[])
     
     return 0;
 }
+
+\f
+// Local Variables:
+// mode: c++
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u"
+// comment-column: 40
+// End: