Searched refs:proto (Results 1 – 4 of 4) sorted by relevance
/net-tools-3.4.0/ |
D | echo-server.c | 79 static int get_socket(int family, int proto) in get_socket() argument 83 fd = socket(family, proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM, in get_socket() 84 proto); in get_socket() 135 struct sockaddr *addr, socklen_t *addrlen, int proto) in receive() argument 139 if (proto == IPPROTO_UDP) { in receive() 145 } else if (proto == IPPROTO_TCP) { in receive() 152 printf("Invalid protocol %d\n", proto); in receive() 160 struct sockaddr *addr, socklen_t addrlen, int proto) in reply() argument 164 if (proto == IPPROTO_UDP) { in reply() 169 } else if (proto == IPPROTO_TCP) { in reply() [all …]
|
/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | net_sockets.c | 136 int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto ) in mbedtls_net_connect() argument 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() 183 int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char *port, int proto ) in mbedtls_net_bind() argument 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() 231 if( proto == MBEDTLS_NET_PROTO_TCP ) in mbedtls_net_bind()
|
/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/ |
D | net_sockets.h | 94 int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto ); 113 int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char *port, int proto );
|
/net-tools-3.4.0/mbedtls-2.4.0/ |
D | ChangeLog | 424 * net_connect() and net_bind() have a new 'proto' argument to choose
|