Lines Matching refs:hints
178 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_connect() local
184 memset( &hints, 0, sizeof( hints ) ); in mbedtls_net_connect()
185 hints.ai_family = AF_UNSPEC; in mbedtls_net_connect()
186 hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM; in mbedtls_net_connect()
187 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_connect()
189 if( getaddrinfo( host, port, &hints, &addr_list ) != 0 ) in mbedtls_net_connect()
225 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_bind() local
231 memset( &hints, 0, sizeof( hints ) ); in mbedtls_net_bind()
232 hints.ai_family = AF_UNSPEC; in mbedtls_net_bind()
233 hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM; in mbedtls_net_bind()
234 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_bind()
236 hints.ai_flags = AI_PASSIVE; in mbedtls_net_bind()
238 if( getaddrinfo( bind_ip, port, &hints, &addr_list ) != 0 ) in mbedtls_net_bind()