X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FTCPClientServer%2Fclient.cc;h=50f4ec72127baf7345341609c6a334cff28d4660;hb=61b2e2ea5cb50df90931acf3fcd840493ba762a9;hp=83fbde673282726c8f974f3021667821dc8148f3;hpb=8d2d26f114d3df0a60c5c516fcf40671b1e55558;p=senf.git diff --git a/Examples/TCPClientServer/client.cc b/Examples/TCPClientServer/client.cc index 83fbde6..50f4ec7 100644 --- a/Examples/TCPClientServer/client.cc +++ b/Examples/TCPClientServer/client.cc @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Thorsten Horstmann +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Thorsten Horstmann // // 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 @@ -24,8 +24,7 @@ // Custom includes #include #include -#include "../../Socket/Protocols/INet/TCPSocketHandle.hh" -#include "../../Socket/Protocols/INet/INetAddressing.hh" +#include int main(int argc, char const * argv[]) { @@ -34,20 +33,20 @@ int main(int argc, char const * argv[]) senf::TCPv4ClientSocketHandle sock; sock.connect(senf::INet4SocketAddress("127.0.0.1:4243")); sock.protocol().linger(true); - + std::stringstream s; s << i++; sock.write(s.str()); sock.close(); - + std::cout << i << std::endl; } } catch (std::exception const & ex) { std::cerr << senf::prettyName(typeid(ex)) << ": " << ex.what() << "\n"; } - + return 0; }