Apache Mesos
Namespaces | Classes | Typedefs | Functions
process::network Namespace Reference

Namespaces

 inet
 
 inet4
 
 inet6
 
 internal
 
 openssl
 
 unix
 

Classes

class  Address
 

Typedefs

using Socket = network::internal::Socket< network::Address >
 

Functions

template<typename AddressType >
Try< AddressType > convert (Try< Address > &&address)
 
template<>
Try< unix::Addressconvert (Try< Address > &&address)
 
template<>
Try< inet4::Addressconvert (Try< Address > &&address)
 
template<>
Try< inet6::Addressconvert (Try< Address > &&address)
 
template<>
Try< inet::Addressconvert (Try< Address > &&address)
 
template<>
Try< Addressconvert (Try< Address > &&address)
 
Try< int_fdaccept (int_fd s)
 
Try< Nothingbind (int_fd s, const Address &address)
 
Try< Nothing, SocketErrorconnect (int_fd s, const Address &address)
 
Try< Addressaddress (int_fd s)
 Returns the Address with the assigned ip and assigned port. More...
 
Try< Addresspeer (int_fd s)
 Returns the peer's Address for the accepted or connected socket. More...
 

Typedef Documentation

Function Documentation

Try<int_fd> process::network::accept ( int_fd  s)
inline
Try<Address> process::network::address ( int_fd  s)
inline

Returns the Address with the assigned ip and assigned port.

Returns
An Address or an error if the getsockname system call fails or the family type is not supported.
Try<Nothing> process::network::bind ( int_fd  s,
const Address &  address 
)
inline
Try<Nothing, SocketError> process::network::connect ( int_fd  s,
const Address &  address 
)
inline
template<typename AddressType >
Try<AddressType> process::network::convert ( Try< Address > &&  address)
inline
template<>
Try<unix::Address> process::network::convert ( Try< Address > &&  address)
inline
template<>
Try<inet4::Address> process::network::convert ( Try< Address > &&  address)
inline
template<>
Try<inet6::Address> process::network::convert ( Try< Address > &&  address)
inline
template<>
Try<inet::Address> process::network::convert ( Try< Address > &&  address)
inline
template<>
Try<Address> process::network::convert ( Try< Address > &&  address)
inline
Try<Address> process::network::peer ( int_fd  s)
inline

Returns the peer's Address for the accepted or connected socket.

Returns
An Address or an error if the getpeername system call fails or the family type is not supported.