8 #ifndef BOOSTER_AIO_BASIC_SOCKET_H 9 #define BOOSTER_AIO_BASIC_SOCKET_H 11 #include <booster/aio/types.h> 12 #include <booster/hold_ptr.h> 13 #include <booster/noncopyable.h> 14 #include <booster/aio/endpoint.h> 15 #include <booster/aio/basic_io_device.h> 56 endpoint local_endpoint(system::error_code &e);
69 endpoint remote_endpoint(system::error_code &e);
92 bool get_option(boolean_option_type opt,system::error_code &e);
97 bool get_option(boolean_option_type opt);
103 void set_option(boolean_option_type opt,
bool v,system::error_code &e);
109 void set_option(boolean_option_type opt,
bool v);
125 int get_option(integer_option_type opt,system::error_code &e);
131 int get_option(integer_option_type opt);
138 void set_option(integer_option_type opt,
int v,system::error_code &e);
145 void set_option(integer_option_type opt,
int v);
160 void bind(
endpoint const &ep,system::error_code &e);
This is a basic object that allows execution of asynchronous operations.
Definition: basic_io_device.h:36
this class represents the connection endpoint, that is generally sockaddr structure in Berkeley socke...
Definition: endpoint.h:26
This class represents a basic Socket object.
Definition: basic_socket.h:26
socket_type
Definition: types.h:74
integer_option_type
Definition: basic_socket.h:115
boolean_option_type
Definition: basic_socket.h:80
family_type
Definition: types.h:65
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23
this is the central event loop that dispatches all requests.
Definition: io_service.h:37