Lines Matching refs:TcpSocket
6 pub(crate) type TcpSocket = i32; typedef
8 pub(crate) fn new_v4_socket() -> io::Result<TcpSocket> { in new_v4_socket()
12 pub(crate) fn new_v6_socket() -> io::Result<TcpSocket> { in new_v6_socket()
16 pub(crate) fn bind(_socket: TcpSocket, _addr: SocketAddr) -> io::Result<()> { in bind() argument
20 pub(crate) fn connect(_: TcpSocket, _addr: SocketAddr) -> io::Result<net::TcpStream> { in connect() argument
24 pub(crate) fn listen(_: TcpSocket, _: u32) -> io::Result<net::TcpListener> { in listen() argument
28 pub(crate) fn close(_: TcpSocket) { in close() argument
32 pub(crate) fn set_reuseaddr(_: TcpSocket, _: bool) -> io::Result<()> { in set_reuseaddr() argument
36 pub(crate) fn get_reuseaddr(_: TcpSocket) -> io::Result<bool> { in get_reuseaddr()
41 pub(crate) fn set_reuseport(_: TcpSocket, _: bool) -> io::Result<()> { in set_reuseport() argument
46 pub(crate) fn get_reuseport(_: TcpSocket) -> io::Result<bool> { in get_reuseport()
50 pub(crate) fn set_linger(_: TcpSocket, _: Option<Duration>) -> io::Result<()> { in set_linger() argument
54 pub(crate) fn get_linger(_: TcpSocket) -> io::Result<Option<Duration>> { in get_linger()
58 pub(crate) fn set_recv_buffer_size(_: TcpSocket, _: u32) -> io::Result<()> { in set_recv_buffer_size() argument
62 pub(crate) fn get_recv_buffer_size(_: TcpSocket) -> io::Result<u32> { in get_recv_buffer_size()
66 pub(crate) fn set_send_buffer_size(_: TcpSocket, _: u32) -> io::Result<()> { in set_send_buffer_size() argument
70 pub(crate) fn get_send_buffer_size(_: TcpSocket) -> io::Result<u32> { in get_send_buffer_size()
74 pub(crate) fn set_keepalive(_: TcpSocket, _: bool) -> io::Result<()> { in set_keepalive() argument
78 pub(crate) fn get_keepalive(_: TcpSocket) -> io::Result<bool> { in get_keepalive()
82 pub(crate) fn set_keepalive_params(_: TcpSocket, _: TcpKeepalive) -> io::Result<()> { in set_keepalive_params() argument
95 pub(crate) fn get_keepalive_time(_: TcpSocket) -> io::Result<Option<Duration>> { in get_keepalive_time()
106 pub(crate) fn get_keepalive_interval(_: TcpSocket) -> io::Result<Option<Duration>> { in get_keepalive_interval()
117 pub(crate) fn get_keepalive_retries(_: TcpSocket) -> io::Result<Option<u32>> { in get_keepalive_retries()
125 pub(crate) fn get_localaddr(_: TcpSocket) -> io::Result<SocketAddr> { in get_localaddr()