Lines Matching defs:socket
612 pub fn socket(domain: ::c_int, ty: ::c_int, protocol: ::c_int) -> ::c_int;
624 pub fn connect(socket: ::c_int, address: *const sockaddr, len: socklen_t) -> ::c_int;
630 pub fn listen(socket: ::c_int, backlog: ::c_int) -> ::c_int;
641 pub fn accept(socket: ::c_int, address: *mut sockaddr, address_len: *mut socklen_t) -> ::c_int;
653 socket: ::c_int,
668 socket: ::c_int,
674 socket: ::c_int,
703 socket: ::c_int,
711 pub fn shutdown(socket: ::c_int, how: ::c_int) -> ::c_int;
1298 pub fn send(socket: ::c_int, buf: *const ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t;
1304 pub fn recv(socket: ::c_int, buf: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::ssize_t;