4 #ifndef _libiqnet_inet_addr_h_
5 #define _libiqnet_inet_addr_h_
11 #include "api_export.h"
23 #pragma warning(disable: 4251)
28 struct sockaddr_in sa;
37 Inet_addr(
const std::string& host,
int port = 0 );
42 const struct sockaddr_in* get_sockaddr()
const {
return &sa; }
44 int get_port()
const {
return port; }
Object-oriented networking/multithreading infrastructure.
Definition: acceptor.h:11
An object representation of internet address.
Definition: inet_addr.h:27
Inet_addr()
Does nothing.
Definition: inet_addr.h:34
std::string get_host_name()
Returns host.domain of local processor.
Definition: inet_addr.cc:10