/Zephyr-Core-2.7.6/include/posix/sys/ |
D | socket.h | 35 static inline int shutdown(int sock, int how) in shutdown() 40 static inline int bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in bind() 45 static inline int connect(int sock, const struct sockaddr *addr, in connect() 51 static inline int listen(int sock, int backlog) in listen() 56 static inline int accept(int sock, struct sockaddr *addr, socklen_t *addrlen) in accept() 61 static inline ssize_t send(int sock, const void *buf, size_t len, int flags) in send() 66 static inline ssize_t recv(int sock, void *buf, size_t max_len, int flags) in recv() 71 static inline ssize_t sendto(int sock, const void *buf, size_t len, int flags, in sendto() 78 static inline ssize_t sendmsg(int sock, const struct msghdr *message, in sendmsg() 84 static inline ssize_t recvfrom(int sock, void *buf, size_t max_len, int flags, in recvfrom() [all …]
|
/Zephyr-Core-2.7.6/drivers/wifi/esp_at/ |
D | esp_socket.c | 24 struct esp_socket *sock = data->sockets; in esp_socket_get() local 45 int esp_socket_put(struct esp_socket *sock) in esp_socket_put() 52 struct esp_socket *esp_socket_ref(struct esp_socket *sock) in esp_socket_ref() 66 void esp_socket_unref(struct esp_socket *sock) in esp_socket_unref() 82 struct esp_socket *sock; in esp_socket_init() local 101 static struct net_pkt *esp_socket_prepare_pkt(struct esp_socket *sock, in esp_socket_prepare_pkt() 146 void esp_socket_rx(struct esp_socket *sock, struct net_buf *buf, in esp_socket_rx() 198 void esp_socket_close(struct esp_socket *sock) in esp_socket_close() 225 void esp_socket_workq_stop_and_flush(struct esp_socket *sock) in esp_socket_workq_stop_and_flush()
|
D | esp_offload.c | 39 static int _sock_connect(struct esp_data *dev, struct esp_socket *sock) in _sock_connect() 96 struct esp_socket *sock = CONTAINER_OF(work, struct esp_socket, in esp_connect_work() local 117 struct esp_socket *sock; in esp_connect() local 192 static int _sock_send(struct esp_socket *sock, struct net_pkt *pkt) in _sock_send() 283 static bool esp_socket_can_send(struct esp_socket *sock) in esp_socket_can_send() 294 static int esp_socket_send_one_pkt(struct esp_socket *sock) in esp_socket_send_one_pkt() 337 struct esp_socket *sock = CONTAINER_OF(work, struct esp_socket, in esp_send_work() local 354 struct esp_socket *sock; in esp_sendto() local 412 static int cmd_ciprecvdata_parse(struct esp_socket *sock, in cmd_ciprecvdata_parse() 461 struct esp_socket *sock = dev->rx_sock; in MODEM_CMD_DIRECT_DEFINE() local [all …]
|
D | esp.h | 263 static inline atomic_val_t esp_socket_flags_update(struct esp_socket *sock, in esp_socket_flags_update() 277 atomic_val_t esp_socket_flags_clear_and_set(struct esp_socket *sock, in esp_socket_flags_clear_and_set() 285 static inline atomic_val_t esp_socket_flags_set(struct esp_socket *sock, in esp_socket_flags_set() 291 static inline bool esp_socket_flags_test_and_clear(struct esp_socket *sock, in esp_socket_flags_test_and_clear() 297 static inline bool esp_socket_flags_test_and_set(struct esp_socket *sock, in esp_socket_flags_test_and_set() 303 static inline atomic_val_t esp_socket_flags_clear(struct esp_socket *sock, in esp_socket_flags_clear() 309 static inline atomic_val_t esp_socket_flags(struct esp_socket *sock) in esp_socket_flags() 314 static inline struct esp_data *esp_socket_to_dev(struct esp_socket *sock) in esp_socket_to_dev() 319 static inline void __esp_socket_work_submit(struct esp_socket *sock, in __esp_socket_work_submit() 327 static inline int esp_socket_work_submit(struct esp_socket *sock, in esp_socket_work_submit() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/ |
D | socket_helpers.h | 15 int ret, sock; in prepare_listen_sock_udp_v4() local 34 int ret, sock; in prepare_listen_sock_udp_v6() local 52 int *sock, struct sockaddr_in *sockaddr) in prepare_sock_udp_v4() 70 int *sock, struct sockaddr_in6 *sockaddr) in prepare_sock_udp_v6() 89 int *sock, struct sockaddr_in *sockaddr) in prepare_sock_tcp_v4() 107 int *sock, struct sockaddr_in6 *sockaddr) in prepare_sock_tcp_v6() 125 int *sock, struct sockaddr_in *sockaddr, in prepare_sock_tls_v4() 144 int *sock, struct sockaddr_in6 *sockaddr, in prepare_sock_tls_v6() 163 int *sock, struct sockaddr_in *sockaddr, in prepare_sock_dtls_v4() 182 int *sock, struct sockaddr_in6 *sockaddr, in prepare_sock_dtls_v6()
|
/Zephyr-Core-2.7.6/drivers/modem/ |
D | modem_socket.c | 23 struct modem_socket *sock) in modem_socket_next_packet_size() 40 static uint16_t modem_socket_packet_get_total(struct modem_socket *sock) in modem_socket_packet_get_total() 56 static int modem_socket_packet_drop_first(struct modem_socket *sock) in modem_socket_packet_drop_first() 75 struct modem_socket *sock, int new_total) in modem_socket_packet_size_update() 228 struct modem_socket *sock = modem_socket_from_fd(cfg, sock_fd); in modem_socket_put() local 264 struct modem_socket *sock; in modem_socket_poll() local 345 struct modem_socket *sock) in modem_socket_wait_data() 355 struct modem_socket *sock) in modem_socket_data_ready()
|
D | wncm14a2a.c | 281 struct wncm14a2a_socket *sock = NULL; in socket_get() local 296 struct wncm14a2a_socket *sock = NULL; in socket_from_id() local 312 static void socket_put(struct wncm14a2a_socket *sock) in socket_put() 347 static int send_at_cmd(struct wncm14a2a_socket *sock, in send_at_cmd() 379 static int send_data(struct wncm14a2a_socket *sock, struct net_pkt *pkt) in send_data() 471 struct wncm14a2a_socket *sock) in pkt_setup_ip_data() 676 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockok() local 690 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockerror() local 707 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockexterror() local 737 struct wncm14a2a_socket *sock = NULL; in on_cmd_sockcreat() local [all …]
|
D | quectel-bg9x.c | 107 struct modem_socket *sock = NULL; in on_cmd_sockread_common() local 185 static void socket_close(struct modem_socket *sock) in socket_close() 380 struct modem_socket *sock; in MODEM_CMD_DEFINE() local 401 struct modem_socket *sock; in MODEM_CMD_DEFINE() local 428 static ssize_t send_socket_data(struct modem_socket *sock, in send_socket_data() 513 struct modem_socket *sock = (struct modem_socket *) obj; in offload_sendto() local 569 struct modem_socket *sock = (struct modem_socket *)obj; in offload_recvfrom() local 702 struct modem_socket *sock = (struct modem_socket *) obj; in offload_connect() local 795 struct modem_socket *sock = (struct modem_socket *) obj; in offload_close() local
|
D | ublox-sara-r4.c | 320 struct modem_socket *sock = (struct modem_socket *)obj; in send_socket_data() local 453 static ssize_t send_cert(struct modem_socket *sock, in send_cert() 744 struct modem_socket *sock = NULL; in MODEM_CMD_DEFINE() local 784 struct modem_socket *sock = NULL; in on_cmd_sockread_common() local 896 struct modem_socket *sock; in MODEM_CMD_DEFINE() local 911 struct modem_socket *sock; in MODEM_CMD_DEFINE() local 1385 static int create_socket(struct modem_socket *sock, const struct sockaddr *addr) in create_socket() 1492 struct modem_socket *sock = (struct modem_socket *)obj; in offload_close() local 1519 struct modem_socket *sock = (struct modem_socket *)obj; in offload_bind() local 1537 struct modem_socket *sock = (struct modem_socket *)obj; in offload_connect() local [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/tftp/ |
D | tftp_client.c | 14 #define ADDRLEN(sock) \ argument 59 static inline int send_err(int sock, int err_code, char *err_msg) in send_err() 83 static inline int send_ack(int sock, struct tftphdr_ack *ackhdr) in send_ack() 92 static int tftp_send_request(int sock, struct sockaddr *server_addr, in tftp_send_request() 153 int sock; in tftp_get() local
|
/Zephyr-Core-2.7.6/samples/net/civetweb/common/src/ |
D | libc_extensions.c | 168 int getsockname(int sock, struct sockaddr *addr, in getsockname() 187 ssize_t send(int sock, const void *buf, size_t len, int flags) in send() 192 ssize_t recv(int sock, void *buf, size_t max_len, int flags) in recv() 214 int connect(int sock, const struct sockaddr *addr, in connect() 220 int getsockopt(int sock, int level, int optname, in getsockopt() 226 int setsockopt(int sock, int level, int optname, in setsockopt() 232 int listen(int sock, int backlog) in listen() 237 int bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in bind() 242 int accept(int sock, struct sockaddr *addr, socklen_t *addrlen) in accept()
|
/Zephyr-Core-2.7.6/samples/net/sockets/websocket_client/src/ |
D | main.c | 74 int *sock, struct sockaddr *addr, socklen_t addr_len) in setup_socket() 138 int *sock, struct sockaddr *addr, socklen_t addr_len) in connect_socket() 158 static int connect_cb(int sock, struct http_request *req, void *user_data) in connect_cb() 176 static ssize_t sendall_with_ws_api(int sock, const void *buf, size_t len) in sendall_with_ws_api() 182 static ssize_t sendall_with_bsd_api(int sock, const void *buf, size_t len) in sendall_with_bsd_api() 187 static void recv_data_wso_api(int sock, size_t amount, uint8_t *buf, in recv_data_wso_api() 231 static void recv_data_bsd_api(int sock, size_t amount, uint8_t *buf, in recv_data_bsd_api() 269 static bool send_and_wait_msg(int sock, size_t amount, const char *proto, in send_and_wait_msg()
|
/Zephyr-Core-2.7.6/tests/net/socket/tls/src/ |
D | main.c | 58 static void test_bind(int sock, struct sockaddr *addr, socklen_t addrlen) in test_bind() 65 static void test_listen(int sock) in test_listen() 72 static void test_connect(int sock, struct sockaddr *addr, socklen_t addrlen) in test_connect() 86 static void test_send(int sock, const void *buf, size_t len, int flags) in test_send() 93 static void test_accept(int sock, int *new_sock, struct sockaddr *addr, in test_accept() 102 static void test_close(int sock) in test_close() 119 int sock = POINTER_TO_INT(p1); in client_connect_entry() local 126 static void spawn_client_connect_thread(int sock, struct sockaddr *addr) in spawn_client_connect_thread() 196 int sock; member 374 int sock; member
|
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/ |
D | sockets.c | 35 #define VTABLE_CALL(fn, sock, ...) \ argument 59 static inline void *get_sock_vtable(int sock, in get_sock_vtable() 96 void *z_impl_zsock_get_context_object(int sock) in z_impl_zsock_get_context_object() 104 void *z_vrfy_zsock_get_context_object(int sock) in z_vrfy_zsock_get_context_object() 265 int z_impl_zsock_close(int sock) in z_impl_zsock_close() 292 static inline int z_vrfy_zsock_close(int sock) in z_vrfy_zsock_close() 299 int z_impl_zsock_shutdown(int sock, int how) in z_impl_zsock_shutdown() 314 static inline int z_vrfy_zsock_shutdown(int sock, int how) in z_vrfy_zsock_shutdown() 418 int z_impl_zsock_bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in z_impl_zsock_bind() 424 static inline int z_vrfy_zsock_bind(int sock, const struct sockaddr *addr, in z_vrfy_zsock_bind() [all …]
|
/Zephyr-Core-2.7.6/include/net/ |
D | socket.h | 352 static inline ssize_t zsock_send(int sock, const void *buf, size_t len, in zsock_send() 401 static inline ssize_t zsock_recv(int sock, void *buf, size_t max_len, in zsock_recv() 650 static inline int close(int sock) in close() 655 static inline int shutdown(int sock, int how) in shutdown() 660 static inline int bind(int sock, const struct sockaddr *addr, socklen_t addrlen) in bind() 665 static inline int connect(int sock, const struct sockaddr *addr, in connect() 671 static inline int listen(int sock, int backlog) in listen() 676 static inline int accept(int sock, struct sockaddr *addr, socklen_t *addrlen) in accept() 681 static inline ssize_t send(int sock, const void *buf, size_t len, int flags) in send() 686 static inline ssize_t recv(int sock, void *buf, size_t max_len, int flags) in recv() [all …]
|
/Zephyr-Core-2.7.6/tests/net/socket/tcp/src/ |
D | main.c | 26 static void test_bind(int sock, struct sockaddr *addr, socklen_t addrlen) in test_bind() 33 static void test_listen(int sock) in test_listen() 40 static void test_connect(int sock, struct sockaddr *addr, socklen_t addrlen) in test_connect() 52 static void test_send(int sock, const void *buf, size_t len, int flags) in test_send() 59 static void test_sendto(int sock, const void *buf, size_t len, int flags, in test_sendto() 67 static void test_accept(int sock, int *new_sock, struct sockaddr *addr, in test_accept() 76 static void test_accept_timeout(int sock, int *new_sock, struct sockaddr *addr, in test_accept_timeout() 86 static void test_fcntl(int sock, int cmd, int val) in test_fcntl() 91 static void test_recv(int sock, int flags) in test_recv() 105 static void test_recvfrom(int sock, in test_recvfrom() [all …]
|
/Zephyr-Core-2.7.6/samples/subsys/video/tcpserversink/src/ |
D | main.c | 27 static ssize_t sendall(int sock, const void *buf, size_t len) in sendall() 47 int i, ret, sock, client; in main() local
|
/Zephyr-Core-2.7.6/drivers/wifi/eswifi/ |
D | eswifi_socket_offload.c | 60 int sock = OBJ_TO_SD(obj); in eswifi_socket_connect() local 99 int sock = OBJ_TO_SD(obj); in __eswifi_socket_accept() local 121 int sock; in eswifi_socket_accept() local 240 int sock = OBJ_TO_SD(obj); in eswifi_socket_send() local 295 int sock = OBJ_TO_SD(obj); in eswifi_socket_recv() local 359 int sock = OBJ_TO_SD(obj); in eswifi_socket_close() local 424 int sock, ret; in eswifi_socket_poll() local 476 int sock = OBJ_TO_SD(obj); in eswifi_socket_bind() local 501 int sock; in eswifi_socket_create() local
|
/Zephyr-Core-2.7.6/samples/net/cloud/tagoio_http_post/src/ |
D | sockets.h | 10 int sock; member
|
/Zephyr-Core-2.7.6/samples/net/sockets/dumb_http_server_mt/src/ |
D | main.c | 129 static ssize_t sendall(int sock, const void *buf, size_t len) in sendall() 145 static int setup(int *sock, struct sockaddr *bind_addr, in setup() 191 int *sock = ptr2; in client_conn_handler() local 261 static int process_tcp(int *sock, int *accepted) in process_tcp()
|
/Zephyr-Core-2.7.6/samples/net/sockets/big_http_download/src/ |
D | big_http_download.c | 88 ssize_t sendall(int sock, const void *buf, size_t len) in sendall() 102 int skip_headers(int sock) in skip_headers() 140 int sock; in download() local
|
/Zephyr-Core-2.7.6/samples/net/sockets/echo_server/src/ |
D | common.h | 41 int sock; member 49 int sock; member 54 int sock; member
|
/Zephyr-Core-2.7.6/subsys/net/lib/http/ |
D | http_client.c | 32 static ssize_t sendall(int sock, const void *buf, size_t len) in sendall() 48 static int http_send_data(int sock, char *send_buf, in http_send_data() 121 static int http_flush_data(int sock, const char *send_buf, size_t send_buf_len) in http_flush_data() 383 static int http_wait_data(int sock, struct http_request *req) in http_wait_data() 477 int http_client_req(int sock, struct http_request *req, in http_client_req()
|
/Zephyr-Core-2.7.6/samples/net/sockets/http_client/src/ |
D | main.c | 38 int *sock, struct sockaddr *addr, socklen_t addr_len) in setup_socket() 91 static int payload_cb(int sock, struct http_request *req, void *user_data) in payload_cb() 130 int *sock, struct sockaddr *addr, socklen_t addr_len) in connect_socket()
|
/Zephyr-Core-2.7.6/samples/net/sockets/echo_client/src/ |
D | common.h | 34 int sock; member 44 int sock; member
|