artdaq  v2_02_03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
TCPConnect.hh
Go to the documentation of this file.
1 #ifndef TCPConnect_hh
2 #define TCPConnect_hh
3 #include <netinet/in.h>
4 
5 // This file (TCPConnect.hh) was created by Ron Rechenmacher <ron@fnal.gov> on
6 // Sep 15, 2016. "TERMS AND CONDITIONS" governing this file are in the README
7 // or COPYING file. If you do not have such a file, one can be obtained by
8 // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000.
9 // $RCSfile: .emacs.gnu,v $
10 // rev="$Revision: 1.30 $$Date: 2016/03/01 14:27:27 $";
11 
23 int ResolveHost(char const* host_in, in_addr& addr);
31 int ResolveHost(char const* host_in, int dflt_port, sockaddr_in& sin);
40 int TCPConnect(char const* host_in, int dflt_port, long flags = 0, int sndbufsiz = 0);
41 
42 #endif // TCPConnect_hh
int ResolveHost(char const *host_in, in_addr &addr)
Convert a string hostname to a in_addr suitable for socket communication.
Definition: TCPConnect.cc:29
int TCPConnect(char const *host_in, int dflt_port, long flags=0, int sndbufsiz=0)
Connect to a host on a given port.
Definition: TCPConnect.cc:122