Lines Matching refs:TcpSocket
24 pub type TcpSocket = libc::c_int; typedef
26 pub(crate) fn new_v4_socket() -> io::Result<TcpSocket> { in new_v4_socket()
30 pub(crate) fn new_v6_socket() -> io::Result<TcpSocket> { in new_v6_socket()
34 pub(crate) fn bind(socket: TcpSocket, addr: SocketAddr) -> io::Result<()> { in bind() argument
40 pub(crate) fn connect(socket: TcpSocket, addr: SocketAddr) -> io::Result<net::TcpStream> { in connect() argument
53 pub(crate) fn listen(socket: TcpSocket, backlog: u32) -> io::Result<net::TcpListener> { in listen() argument
59 pub(crate) fn close(socket: TcpSocket) { in close() argument
63 pub(crate) fn set_reuseaddr(socket: TcpSocket, reuseaddr: bool) -> io::Result<()> { in set_reuseaddr() argument
75 pub(crate) fn get_reuseaddr(socket: TcpSocket) -> io::Result<bool> { in get_reuseaddr()
91 pub(crate) fn set_reuseport(socket: TcpSocket, reuseport: bool) -> io::Result<()> { in set_reuseport() argument
105 pub(crate) fn get_reuseport(socket: TcpSocket) -> io::Result<bool> { in get_reuseport()
120 pub(crate) fn get_localaddr(socket: TcpSocket) -> io::Result<SocketAddr> { in get_localaddr()
133 pub(crate) fn set_linger(socket: TcpSocket, dur: Option<Duration>) -> io::Result<()> { in set_linger() argument
153 pub(crate) fn get_linger(socket: TcpSocket) -> io::Result<Option<Duration>> { in get_linger()
175 pub(crate) fn set_recv_buffer_size(socket: TcpSocket, size: u32) -> io::Result<()> { in set_recv_buffer_size() argument
187 pub(crate) fn get_recv_buffer_size(socket: TcpSocket) -> io::Result<u32> { in get_recv_buffer_size()
201 pub(crate) fn set_send_buffer_size(socket: TcpSocket, size: u32) -> io::Result<()> { in set_send_buffer_size() argument
213 pub(crate) fn get_send_buffer_size(socket: TcpSocket) -> io::Result<u32> { in get_send_buffer_size()
228 pub(crate) fn set_keepalive(socket: TcpSocket, keepalive: bool) -> io::Result<()> { in set_keepalive() argument
240 pub(crate) fn get_keepalive(socket: TcpSocket) -> io::Result<bool> { in get_keepalive()
255 pub(crate) fn set_keepalive_params(socket: TcpSocket, keepalive: TcpKeepalive) -> io::Result<()> { in set_keepalive_params() argument
281 fn set_keepalive_time(socket: TcpSocket, time: Duration) -> io::Result<()> { in set_keepalive_time() argument
297 pub(crate) fn get_keepalive_time(socket: TcpSocket) -> io::Result<Option<Duration>> { in get_keepalive_time()
331 fn set_keepalive_interval(socket: TcpSocket, interval: Duration) -> io::Result<()> { in set_keepalive_interval() argument
354 pub(crate) fn get_keepalive_interval(socket: TcpSocket) -> io::Result<Option<Duration>> { in get_keepalive_interval()
388 fn set_keepalive_retries(socket: TcpSocket, retries: u32) -> io::Result<()> { in set_keepalive_retries() argument
407 pub(crate) fn get_keepalive_retries(socket: TcpSocket) -> io::Result<Option<u32>> { in get_keepalive_retries()