Function scratchstack_wrapper_aws_c_io::aws_socket_bind
source · pub unsafe extern "C" fn aws_socket_bind(
socket: *mut aws_socket,
local_endpoint: *const aws_socket_endpoint
) -> c_int
Expand description
Binds the socket to a local address. In UDP mode, the socket is ready for aws_socket_read()
operations. In
connection oriented modes, you still must call aws_socket_listen()
and aws_socket_start_accept()
before using the
socket. local_endpoint is copied.