Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 4 of 4) sorted by relevance

/net-tools-3.7.0/
Decho-server.c79 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.7.0/mbedtls-2.4.0/library/
Dnet_sockets.c136 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.7.0/mbedtls-2.4.0/include/mbedtls/
Dnet_sockets.h94 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.7.0/mbedtls-2.4.0/
DChangeLog424 * net_connect() and net_bind() have a new 'proto' argument to choose