Lines Matching refs:hints
139 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_connect() local
145 memset( &hints, 0, sizeof( hints ) ); in mbedtls_net_connect()
146 hints.ai_family = AF_UNSPEC; in mbedtls_net_connect()
147 hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM; in mbedtls_net_connect()
148 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_connect()
150 if( getaddrinfo( host, port, &hints, &addr_list ) != 0 ) in mbedtls_net_connect()
186 struct addrinfo hints, *addr_list, *cur; in mbedtls_net_bind() local
192 memset( &hints, 0, sizeof( hints ) ); in mbedtls_net_bind()
193 hints.ai_family = AF_UNSPEC; in mbedtls_net_bind()
194 hints.ai_socktype = proto == MBEDTLS_NET_PROTO_UDP ? SOCK_DGRAM : SOCK_STREAM; in mbedtls_net_bind()
195 hints.ai_protocol = proto == MBEDTLS_NET_PROTO_UDP ? IPPROTO_UDP : IPPROTO_TCP; in mbedtls_net_bind()
197 hints.ai_flags = AI_PASSIVE; in mbedtls_net_bind()
199 if( getaddrinfo( bind_ip, port, &hints, &addr_list ) != 0 ) in mbedtls_net_bind()