00001 #ifndef TCPConnect_hh 00002 #define TCPConnect_hh 00003 #include <netinet/in.h> 00004 00005 // This file (TCPConnect.hh) was created by Ron Rechenmacher <ron@fnal.gov> on 00006 // Sep 15, 2016. "TERMS AND CONDITIONS" governing this file are in the README 00007 // or COPYING file. If you do not have such a file, one can be obtained by 00008 // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000. 00009 // $RCSfile: .emacs.gnu,v $ 00010 // rev="$Revision: 1.30 $$Date: 2016/03/01 14:27:27 $"; 00011 00023 int ResolveHost(char const* host_in, in_addr& addr); 00030 int GetInterfaceForNetwork(char const* host_in, in_addr& addr); 00038 int ResolveHost(char const* host_in, int dflt_port, sockaddr_in& sin); 00047 int TCPConnect(char const* host_in, int dflt_port, long flags = 0, int sndbufsiz = 0); 00048 00049 #endif // TCPConnect_hh