Home
last modified time | relevance | path

Searched refs:servaddr (Results 1 – 12 of 12) sorted by relevance

/uoscore-uedhoc-3.5.0/samples/common/
Dsock_ipv4.c29 struct sockaddr_in *servaddr, size_t servaddr_len, in ipv4_sock_init() argument
34 memset(servaddr, 0, servaddr_len); in ipv4_sock_init()
41 servaddr->sin_family = AF_INET; in ipv4_sock_init()
42 servaddr->sin_port = htons(PORT); in ipv4_sock_init()
43 servaddr->sin_addr.s_addr = inet_addr(ipv4_addr_str); in ipv4_sock_init()
46 r = connect(*sockfd, (const struct sockaddr *)servaddr, in ipv4_sock_init()
55 r = bind(*sockfd, (const struct sockaddr *)servaddr, in ipv4_sock_init()
Dsock_ipv6.c29 struct sockaddr_in6 *servaddr, size_t servaddr_len, in ipv6_sock_init() argument
34 memset(servaddr, 0, servaddr_len); in ipv6_sock_init()
41 servaddr->sin6_family = AF_INET6; in ipv6_sock_init()
42 servaddr->sin6_port = htons(PORT); in ipv6_sock_init()
43 r = inet_pton(AF_INET6, ipv6_addr_str, &servaddr->sin6_addr); in ipv6_sock_init()
48 r = connect(*sockfd, (const struct sockaddr *)servaddr, in ipv6_sock_init()
55 r = bind(*sockfd, (const struct sockaddr *)servaddr, in ipv6_sock_init()
Dsock.c17 enum ip_addr_type ip_t, void *servaddr, size_t servaddr_len, in sock_init() argument
23 (struct sockaddr_in *)servaddr, servaddr_len, in sock_init()
29 (struct sockaddr_in6 *)servaddr, in sock_init()
Dsock.h55 struct sockaddr_in *servaddr, size_t servaddr_len,
68 struct sockaddr_in6 *servaddr, size_t servaddr_len,
81 enum ip_addr_type ip_t, void *servaddr, size_t servaddr_len,
/uoscore-uedhoc-3.5.0/samples/linux_oscore/client/src/
Dmain.cpp42 struct sockaddr_in servaddr; in main() local
44 err = sock_init(SOCK_CLIENT, IPV4_SERVADDR, IPv4, &servaddr, in main()
45 sizeof(servaddr), &sockfd); in main()
53 struct sockaddr_in6 servaddr; in main() local
55 err = sock_init(SOCK_CLIENT, IPV6_SERVADDR, IPv6, &servaddr, in main()
56 sizeof(servaddr), &sockfd); in main()
136 (const struct sockaddr *)&servaddr, sizeof(servaddr)); in main()
140 (struct sockaddr *)&servaddr, &len); in main()
/uoscore-uedhoc-3.5.0/samples/linux_oscore/server/src/
Dmain.cpp88 struct sockaddr_in servaddr; in main() local
93 err = sock_init(SOCK_SERVER, IPV4_SERVADDR, IPv4, &servaddr, in main()
94 sizeof(servaddr), &sockfd); in main()
102 struct sockaddr_in6 servaddr; in main() local
107 err = sock_init(SOCK_SERVER, IPV6_SERVADDR, IPv6, &servaddr, in main()
108 sizeof(servaddr), &sockfd); in main()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/initiator/src/
Dmain.cpp42 struct sockaddr_in servaddr; in start_coap_client() local
45 err = sock_init(SOCK_CLIENT, IPV4_SERVADDR, IPv4, &servaddr, in start_coap_client()
46 sizeof(servaddr), sockfd); in start_coap_client()
54 struct sockaddr_in6 servaddr; in start_coap_client() local
56 err = sock_init(SOCK_CLIENT, IPV6_SERVADDR, IPv6, &servaddr, in start_coap_client()
57 sizeof(servaddr), sockfd); in start_coap_client()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/responder/src/
Dmain.cpp57 struct sockaddr_in servaddr; in start_coap_server() local
63 err = sock_init(SOCK_SERVER, IPV4_SERVADDR, IPv4, &servaddr, in start_coap_server()
64 sizeof(servaddr), sockfd); in start_coap_server()
72 struct sockaddr_in6 servaddr; in start_coap_server() local
77 err = sock_init(SOCK_SERVER, IPV6_SERVADDR, IPv6, &servaddr, in start_coap_server()
78 sizeof(servaddr), sockfd); in start_coap_server()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/initiator_client/src/
Dmain.cpp44 struct sockaddr_in servaddr; in start_coap_client() local
46 err = sock_init(SOCK_CLIENT, IPV4_SERVADDR, IPv4, &servaddr, in start_coap_client()
47 sizeof(servaddr), sockfd); in start_coap_client()
55 struct sockaddr_in6 servaddr; in start_coap_client() local
57 err = sock_init(SOCK_CLIENT, IPV6_SERVADDR, IPv6, &servaddr, in start_coap_client()
58 sizeof(servaddr), sockfd); in start_coap_client()
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/responder_server/src/
Dmain.cpp80 struct sockaddr_in servaddr; in start_coap_server() local
85 err = sock_init(SOCK_SERVER, IPV4_SERVADDR, IPv4, &servaddr, in start_coap_server()
86 sizeof(servaddr), sockfd); in start_coap_server()
94 struct sockaddr_in6 servaddr; in start_coap_server() local
99 err = sock_init(SOCK_SERVER, IPV6_SERVADDR, IPv6, &servaddr, in start_coap_server()
100 sizeof(servaddr), sockfd); in start_coap_server()
/uoscore-uedhoc-3.5.0/samples/zephyr_edhoc/initiator/src/
Dmain.c26 struct sockaddr_in6 servaddr; in start_coap_client() local
29 int r = ipv6_sock_init(SOCK_CLIENT, IPV6_SERVADDR, &servaddr, in start_coap_client()
30 sizeof(servaddr), sockfd); in start_coap_client()
/uoscore-uedhoc-3.5.0/samples/zephyr_edhoc/responder/src/
Dmain.c32 struct sockaddr_in6 servaddr; in start_coap_server() local
37 err = ipv6_sock_init(SOCK_SERVER, IPV6_SERVADDR, &servaddr, in start_coap_server()
38 sizeof(servaddr), sockfd); in start_coap_server()