Lines Matching refs:sockaddr_in
12 c_int, in6_addr, in_addr, sa_family_t, sockaddr, sockaddr_in, sockaddr_in6, socklen_t, AF_INET,
41 fn sockaddrv4_to_lib_c(s: &SocketAddrV4) -> sockaddr_in { in sockaddrv4_to_lib_c() argument
42 sockaddr_in { in sockaddrv4_to_lib_c()
105 &sin as *const sockaddr_in as *const sockaddr, in bind() constant
106 size_of::<sockaddr_in>() as socklen_t, in bind()
144 &sin as *const sockaddr_in as *const sockaddr, in connect() constant
145 size_of::<sockaddr_in>() as socklen_t, in connect()
156 size_of::<sockaddr_in>() as socklen_t, in connect()
189 let mut sin = sockaddr_in { in local_port()
197 let mut addrlen = size_of::<sockaddr_in>() as socklen_t; in local_port()
202 &mut sin as *mut sockaddr_in as *mut sockaddr, in local_port()
211 assert_eq!(addrlen as usize, size_of::<sockaddr_in>()); in local_port()
240 assert_eq!(addrlen as usize, size_of::<sockaddr_in>()); in local_port()