|
socket | accept () |
| Creates a new xtd::net::sockets::socket for a newly created connection.
|
|
bool | accept_async (xtd::net::sockets::socket_async_event_args &e) |
| Begins an asynchronous operation to accept an incoming connection attempt.
|
|
xtd::sptr< xtd::iasync_result > | begin_accept (xtd::async_callback callback, const std::any &state) |
| Begins an asynchronous operation to accept an incoming connection attempt.
|
|
template<typename end_point_t > |
xtd::sptr< xtd::iasync_result > | begin_connect (const end_point_t &remote_end_point, xtd::async_callback callback, const std::any &state) |
| Begins an asynchronous request for a remote host connection.
|
|
xtd::sptr< xtd::iasync_result > | begin_connect (const xtd::net::ip_address &address, uint16 port, xtd::async_callback callback, const std::any &state) |
| Begins an asynchronous request for a remote host connection. The host is specified by an xtd::net::ip_address and a port number.
|
|
xtd::sptr< xtd::iasync_result > | begin_connect (const std::vector< xtd::net::ip_address > &addresses, uint16 port, xtd::async_callback callback, const std::any &state) |
| Begins an asynchronous request for a remote host connection. The host is specified by an xtd::net::ip_address array and a port number.
|
|
xtd::sptr< xtd::iasync_result > | begin_connect (const xtd::string &host, uint16 port, xtd::async_callback callback, const std::any &state) |
| Begins an asynchronous request for a remote host connection. The host is specified by a host name and a port number.
|
|
xtd::sptr< xtd::iasync_result > | begin_disconnect (bool reuse_socket, xtd::async_callback callback, const std::any &state) |
| Begins an asynchronous request to disconnect from a remote endpoint.
|
|
xtd::sptr< xtd::iasync_result > | begin_receive (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::async_callback callback, const std::any &state) |
| Begins to asynchronously receive data from a connected xtd::net::sockets::socket::socket.
|
|
xtd::sptr< xtd::iasync_result > | begin_receive (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::sockets::socket_error &error_code, xtd::async_callback callback, const std::any &state) |
| Begins to asynchronously receive data from a connected xtd::net::sockets::socket::socket.
|
|
xtd::sptr< xtd::iasync_result > | begin_receive_from (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::end_point &remote_end_point, xtd::async_callback callback, const std::any &state) |
| Begins to asynchronously receive data from a specified network device.
|
|
xtd::sptr< xtd::iasync_result > | begin_receive_message_from (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::end_point &remote_end_point, xtd::async_callback callback, const std::any &state) |
| Begins to asynchronously receive the specified number of bytes of data into the specified location of the data buffer, using the specified xtd::net::sockets::socket_flags, and stores the endpoint and packet information.
|
|
xtd::sptr< xtd::iasync_result > | begin_send (const std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::async_callback callback, const std::any &state) |
| Sends data asynchronously to a connected xtd::net::sockets::socket::socket.
|
|
xtd::sptr< xtd::iasync_result > | begin_send (const std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::sockets::socket_error &error_code, xtd::async_callback callback, const std::any &state) |
| Sends data asynchronously to a connected xtd::net::sockets::socket::socket.
|
|
xtd::sptr< xtd::iasync_result > | begin_send_to (const std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, const xtd::net::end_point &remote_end_point, xtd::async_callback callback, const std::any &state) |
| Sends data asynchronously to a specific remote host.
|
|
template<typename end_point_t > |
void | bind (const end_point_t &local_end_point) |
| Associates a xtd::net::sockets::socket with a local endpoint.
|
|
void | close () |
| Closes the xtd::net::sockets::socket connection and releases all associated resources.
|
|
template<typename end_point_t > |
void | connect (const end_point_t &remote_end_point) |
| Establishes a connection to a remote host.
|
|
void | connect (const xtd::net::ip_address &address, uint16 port) |
| Establishes a connection to a remote host. The host is specified by an IP address and a port number.
|
|
void | connect (const std::vector< xtd::net::ip_address > &addresses, uint16 port) |
| Establishes a connection to a remote host. The host is specified by an array of IP addresses and a port number.
|
|
void | connect (const xtd::string &host, uint16 port) |
| Establishes a connection to a remote host. The host is specified by a host name and a port number.
|
|
void | disconnect (bool reuse_socket) |
| Closes the socket connection and allows reuse of the socket.
|
|
socket | end_accept (xtd::sptr< xtd::iasync_result > async_result) |
| Asynchronously accepts an incoming connection attempt and creates a new xtd::net::sockets::socket::socket to handle remote host communication.
|
|
void | end_connect (xtd::sptr< xtd::iasync_result > async_result) |
| Ends a pending asynchronous connection request.
|
|
void | end_disconnect (xtd::sptr< xtd::iasync_result > async_result) |
| Ends a pending asynchronous disconnect request.
|
|
size_t | end_receive (xtd::sptr< xtd::iasync_result > async_result) |
| Ends a pending asynchronous read.
|
|
size_t | end_receive (xtd::sptr< xtd::iasync_result > async_result, xtd::net::sockets::socket_error &error_code) |
| Ends a pending asynchronous read.
|
|
size_t | end_receive_from (xtd::sptr< xtd::iasync_result > async_result, xtd::sptr< xtd::net::end_point > &end_point) |
| Ends a pending asynchronous read from a specific endpoint.
|
|
size_t | end_receive_message_from (xtd::sptr< xtd::iasync_result > async_result, xtd::net::sockets::socket_flags &socket_flags, xtd::sptr< xtd::net::end_point > &end_point, xtd::net::sockets::ip_packet_information &ip_packet_information) |
| Ends a pending asynchronous read from a specific endpoint. This method also reveals more information about the packet than xtd::net::sockets::socket::end_receive_from(xtd::iasync_result, xtd::net::end_point).
|
|
size_t | end_send (xtd::sptr< xtd::iasync_result > async_result) |
| Ends a pending asynchronous send.
|
|
size_t | end_send (xtd::sptr< xtd::iasync_result > async_result, xtd::net::sockets::socket_error &error_code) |
| Ends a pending asynchronous send.
|
|
size_t | end_send_to (xtd::sptr< xtd::iasync_result > async_result) |
| Ends a pending asynchronous send to a specific location.
|
|
bool | equals (const socket &s) const noexcept override |
|
size_t | get_raw_socket_option (int32 socket_option_level, int32 socket_option_name, intptr option_value, size_t size_option_value) const |
| Gets a socket option value using platform-specific level and name identifiers.
|
|
int32 | get_socket_option (xtd::net::sockets::socket_option_level socket_option_level, xtd::net::sockets::socket_option_name socket_option_name) const |
| Returns the value of a specified xtd::net::sockets::socket option, represented as integer.
|
|
xtd::net::sockets::linger_option | get_socket_linger_option () const |
| Returns the linger xtd::net::sockets::socket option, represented as xtd::net::sockets::linger_option.
|
|
xtd::net::sockets::multicast_option | get_socket_multicast_option (xtd::net::sockets::socket_option_name socket_option_name) const |
| Returns the multicast xtd::net::sockets::socket option, represented as xtd::net::sockets::multicast_option.
|
|
xtd::net::sockets::ip_v6_multicast_option | get_socket_ip_v6_multicast_option (xtd::net::sockets::socket_option_name socket_option_name) const |
| Returns the multicast xtd::net::sockets::socket option, represented as xtd::net::sockets::ip_v6_multicast_option.
|
|
size_t | io_control (int32 io_control_code, std::vector< xtd::byte > &option_in_value, std::vector< xtd::byte > &option_out_value) |
| Sets low-level operating modes for the xtd::net::sockets::socket using numerical control codes.
|
|
size_t | io_control (xtd::net::sockets::io_control_code io_control_code, std::vector< xtd::byte > &option_in_value, std::vector< xtd::byte > &option_out_value) |
| Sets low-level operating modes for the xtd::net::sockets::socket using xtd::net::sockets::io_control_code control codes.
|
|
void | listen (size_t backlog) |
| Places a xtd::net::sockets::socket in a listening state.
|
|
void | listen () |
| Places a xtd::net::sockets::socket in a listening state.
|
|
bool | poll (int32 micro_seconds, xtd::net::sockets::select_mode mode) |
| Determines the status of the xtd::net::sockets::socket.
|
|
size_t | receive (std::vector< xtd::byte > &buffer) |
| Receives data from a bound xtd::net::sockets::socket into a receive buffer.
|
|
size_t | receive (std::vector< xtd::byte > &buffer, xtd::net::sockets::socket_flags socket_flags) |
| Receives data from a bound xtd::net::sockets::socket into a receive buffer, using the specified xtd::net::sockets::socket_flags.
|
|
size_t | receive (std::vector< xtd::byte > &buffer, size_t size, xtd::net::sockets::socket_flags socket_flags) |
| Receives the specified number of bytes of data from a bound xtd::net::sockets::socket into a receive buffer, using the specified xtd::net::sockets::socket_flags.
|
|
size_t | receive (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags) |
| Receives the specified number of bytes from a bound xtd::net::sockets::socket into the specified offset position of the receive buffer, using the specified xtd::net::sockets::socket_flags.
|
|
size_t | receive (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::sockets::socket_error &error) |
| Receives the specified number of bytes from a bound xtd::net::sockets::socket into the specified offset position of the receive buffer, using the specified xtd::net::sockets::socket_flags.
|
|
size_t | receive_from (std::vector< xtd::byte > &buffer, xtd::net::end_point &remote_end_point) |
| Receives data from a bound xtd::net::sockets::socket into a receive buffer.
|
|
size_t | receive_from (std::vector< xtd::byte > &buffer, xtd::net::sockets::socket_flags socket_flags, xtd::net::end_point &remote_end_point) |
| Receives data from a bound xtd::net::sockets::socket into a receive buffer.
|
|
size_t | receive_from (std::vector< xtd::byte > &buffer, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::end_point &remote_end_point) |
| Receives data from a bound xtd::net::sockets::socket into a receive buffer.
|
|
size_t | receive_from (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::end_point &remote_end_point) |
| Receives data from a bound xtd::net::sockets::socket into a receive buffer.
|
|
size_t | receive_message_from (std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::end_point &remote_end_point, xtd::net::sockets::ip_packet_information &ip_packet_information) |
|
size_t | send (const std::vector< xtd::byte > &buffer) |
| Sends data to a connected xtd::net::sockets::socket.
|
|
size_t | send (const std::vector< xtd::byte > &buffer, xtd::net::sockets::socket_flags socket_flags) |
| Sends data to a connected xtd::net::sockets::socket using the specified xtd::net::sockets::socket_flags.
|
|
size_t | send (const std::vector< xtd::byte > &buffer, size_t size, xtd::net::sockets::socket_flags socket_flags) |
| Sends the specified number of bytes of data to a connected xtd::net::sockets::socket, using the specified xtd::net::sockets::socket_flags.
|
|
size_t | send (const std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags) |
| Sends the specified number of bytes of data to a connected xtd::net::sockets::socket, starting at the specified offset, and using the specified xtd::net::sockets::socket_flags.
|
|
size_t | send (const std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, xtd::net::sockets::socket_error &error_code) |
| Sends the specified number of bytes of data to a connected xtd::net::sockets::socket, starting at the specified offset, and using the specified xtd::net::sockets::socket_flags.
|
|
size_t | send_to (const std::vector< xtd::byte > &buffer, const xtd::net::end_point &remote_end_point) |
| Sends data to the specified endpoint.
|
|
size_t | send_to (const std::vector< xtd::byte > &buffer, xtd::net::sockets::socket_flags socket_flags, const xtd::net::end_point &remote_end_point) |
| Sends data to a specific endpoint using the specified xtd::net::sockets::socket_flags.
|
|
size_t | send_to (const std::vector< xtd::byte > &buffer, size_t size, xtd::net::sockets::socket_flags socket_flags, const xtd::net::end_point &remote_end_point) |
| Sends the specified number of bytes of data to the specified endpoint using the specified xtd::net::sockets::socket_flags.
|
|
size_t | send_to (const std::vector< xtd::byte > &buffer, size_t offset, size_t size, xtd::net::sockets::socket_flags socket_flags, const xtd::net::end_point &remote_end_point) |
| Sends the specified number of bytes of data to the specified endpoint, starting at the specified location in the buffer, and using the specified xtd::net::sockets::socket_flags.
|
|
void | set_ip_protection_level (xtd::net::sockets::ip_protection_level level) |
| Sets the IP protection level on a socket.
|
|
void | set_socket_option (xtd::net::sockets::socket_option_level socket_option_level, xtd::net::sockets::socket_option_name socket_option_name, bool option_value) |
| Sets the specified xtd::net::sockets::socket option to the specified integer value.
|
|
void | set_socket_option (xtd::net::sockets::socket_option_level socket_option_level, xtd::net::sockets::socket_option_name socket_option_name, int32 option_value) |
| Sets the specified xtd::net::sockets::socket option to the specified integer value.
|
|
void | set_socket_option (xtd::net::sockets::linger_option option_value) |
| Sets the linger xtd::net::sockets::socket option to the specified integer value.
|
|
void | set_socket_option (xtd::net::sockets::socket_option_name socket_option_name, const xtd::net::sockets::multicast_option &option_value) |
| Sets the linger xtd::net::sockets::socket option to the specified integer value.
|
|
void | set_socket_option (xtd::net::sockets::socket_option_name socket_option_name, const xtd::net::sockets::ip_v6_multicast_option &option_value) |
| Sets the linger xtd::net::sockets::socket option to the specified integer value.
|
|
void | set_raw_socket_option (int32 socket_option_level, int32 socket_option_name, intptr option_value, size_t option_value_size) |
| Sets a socket option value using platform-specific level and name identifiers.
|
|
void | shutdown (xtd::net::sockets::socket_shutdown how) |
| Disables sends and receives on a xtd::net::sockets::socket.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|