Lines Matching refs:TcpSocket
24 pub(crate) type TcpSocket = SOCKET; typedef
26 pub(crate) fn new_v4_socket() -> io::Result<TcpSocket> { in new_v4_socket()
31 pub(crate) fn new_v6_socket() -> io::Result<TcpSocket> { in new_v6_socket()
36 pub(crate) fn bind(socket: TcpSocket, addr: SocketAddr) -> io::Result<()> { in bind() argument
48 pub(crate) fn connect(socket: TcpSocket, addr: SocketAddr) -> io::Result<net::TcpStream> { in connect() argument
69 pub(crate) fn listen(socket: TcpSocket, backlog: u32) -> io::Result<net::TcpListener> { in listen() argument
78 pub(crate) fn close(socket: TcpSocket) { in close() argument
82 pub(crate) fn set_reuseaddr(socket: TcpSocket, reuseaddr: bool) -> io::Result<()> { in set_reuseaddr() argument
97 pub(crate) fn get_reuseaddr(socket: TcpSocket) -> io::Result<bool> { in get_reuseaddr()
113 pub(crate) fn get_localaddr(socket: TcpSocket) -> io::Result<SocketAddr> { in get_localaddr()
145 pub(crate) fn set_linger(socket: TcpSocket, dur: Option<Duration>) -> io::Result<()> { in set_linger() argument
163 pub(crate) fn get_linger(socket: TcpSocket) -> io::Result<Option<Duration>> { in get_linger()
186 pub(crate) fn set_recv_buffer_size(socket: TcpSocket, size: u32) -> io::Result<()> { in set_recv_buffer_size() argument
200 pub(crate) fn get_recv_buffer_size(socket: TcpSocket) -> io::Result<u32> { in get_recv_buffer_size()
215 pub(crate) fn set_send_buffer_size(socket: TcpSocket, size: u32) -> io::Result<()> { in set_send_buffer_size() argument
229 pub(crate) fn get_send_buffer_size(socket: TcpSocket) -> io::Result<u32> { in get_send_buffer_size()
244 pub(crate) fn set_keepalive(socket: TcpSocket, keepalive: bool) -> io::Result<()> { in set_keepalive() argument
258 pub(crate) fn get_keepalive(socket: TcpSocket) -> io::Result<bool> { in get_keepalive()
274 pub(crate) fn set_keepalive_params(socket: TcpSocket, keepalive: TcpKeepalive) -> io::Result<()> { in set_keepalive_params() argument