/Zephyr-Core-3.5.0/tests/net/socket/getnameinfo/src/ |
D | main.c | 19 char serv[10]; in ZTEST_USER() local 26 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER() 29 printk("%s %s\n", host, serv); in ZTEST_USER() 31 zassert_equal(strcmp(serv, "0"), 0, ""); in ZTEST_USER() 37 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER() 40 printk("%s %s\n", host, serv); in ZTEST_USER() 42 zassert_equal(strcmp(serv, "1234"), 0, ""); in ZTEST_USER() 49 char serv[10]; in ZTEST_USER() local 56 host, sizeof(host), serv, sizeof(serv), 0); in ZTEST_USER() 59 printk("%s %s\n", host, serv); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.5.0/samples/net/sockets/echo/src/ |
D | socket_echo.c | 29 int serv; in main() local 33 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() 35 if (serv < 0) { in main() 44 if (bind(serv, (struct sockaddr *)&bind_addr, sizeof(bind_addr)) < 0) { in main() 49 if (listen(serv, 5) < 0) { in main() 61 int client = accept(serv, (struct sockaddr *)&client_addr, in main()
|
/Zephyr-Core-3.5.0/samples/net/sockets/dumb_http_server/src/ |
D | socket_dumb_http.c | 45 int serv; in main() local 50 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() 51 CHECK(serv); in main() 56 CHECK(bind(serv, (struct sockaddr *)&bind_addr, sizeof(bind_addr))); in main() 58 CHECK(listen(serv, 5)); in main() 71 int client = accept(serv, (struct sockaddr *)&client_addr, in main()
|
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/ |
D | getnameinfo.c | 13 char *serv, socklen_t servlen, int flags) in zsock_getnameinfo() argument 27 if (serv != NULL) { in zsock_getnameinfo() 28 snprintk(serv, servlen, "%hu", ntohs(a->sin_port)); in zsock_getnameinfo()
|
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 93 int serv; in main() local 102 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() 104 if (serv < 0) { in main() 113 if (bind(serv, (struct sockaddr *)&bind_addr, sizeof(bind_addr)) < 0) { in main() 118 if (listen(serv, 5) < 0) { in main() 132 client = accept(serv, (struct sockaddr *)&client_addr, in main()
|
/Zephyr-Core-3.5.0/include/zephyr/posix/ |
D | netdb.h | 55 char *serv, socklen_t servlen, int flags) in getnameinfo() argument 58 serv, servlen, flags); in getnameinfo()
|
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_server/src/ |
D | main.c | 266 int serv; in main() local 280 serv = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() 282 if (serv < 0) { in main() 291 if (bind(serv, (struct sockaddr *)&bind_addr, sizeof(bind_addr)) < 0) { in main() 296 if (listen(serv, 5) < 0) { in main() 310 client = accept(serv, (struct sockaddr *)&client_addr, in main()
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | socket.h | 747 char *serv, socklen_t servlen, int flags); 922 char *serv, socklen_t servlen, int flags) in getnameinfo() argument 925 serv, servlen, flags); in getnameinfo()
|