X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FTCPClientServer%2Fclient.cc;h=0323d9498ff3840e646b42cfcabff032f77eeeb4;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=0297c4185237815542328b32147b6fbd0ec51836;hpb=52dcdfccdc3c371bc9d884935ad348755fd38e55;p=senf.git diff --git a/Examples/TCPClientServer/client.cc b/Examples/TCPClientServer/client.cc index 0297c41..0323d94 100644 --- a/Examples/TCPClientServer/client.cc +++ b/Examples/TCPClientServer/client.cc @@ -23,17 +23,15 @@ // Custom includes #include #include -#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 +49,14 @@ int main(int argc, char const * argv[]) return 0; } + + +// 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: