/Zephyr-Core-2.7.6/drivers/wifi/eswifi/ |
D | eswifi_offload.c | 28 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_bind() local 34 err = __eswifi_bind(eswifi, socket, addr, addrlen); in eswifi_off_bind() 42 struct eswifi_off_socket *socket = context->offload_context; in eswifi_off_listen() local 50 __select_socket(eswifi, socket->index); in eswifi_off_listen() 60 socket->is_server = true; in eswifi_off_listen() 69 struct eswifi_off_socket *socket; in eswifi_off_connect_work() local 76 socket = CONTAINER_OF(work, struct eswifi_off_socket, connect_work); in eswifi_off_connect_work() 77 eswifi = eswifi_socket_to_dev(socket); in eswifi_off_connect_work() 81 cb = socket->conn_cb; in eswifi_off_connect_work() 82 context = socket->context; in eswifi_off_connect_work() [all …]
|
D | eswifi_socket.c | 22 struct eswifi_off_socket *socket) in __stop_socket() argument 27 LOG_DBG("Stopping socket %d", socket->index); in __stop_socket() 28 if (socket->state != ESWIFI_SOCKET_STATE_CONNECTED) { in __stop_socket() 32 socket->state = ESWIFI_SOCKET_STATE_NONE; in __stop_socket() 33 return eswifi_at_cmd(eswifi, socket->is_server ? cmd_srv : cmd_cli); in __stop_socket() 62 int __eswifi_bind(struct eswifi_dev *eswifi, struct eswifi_off_socket *socket, in __eswifi_bind() argument 72 __select_socket(eswifi, socket->index); in __eswifi_bind() 73 socket->port = sys_be16_to_cpu(net_sin(addr)->sin_port); in __eswifi_bind() 76 snprintk(eswifi->buf, sizeof(eswifi->buf), "P2=%d\r", socket->port); in __eswifi_bind() 88 struct eswifi_off_socket *socket; in eswifi_off_read_work() local [all …]
|
D | eswifi_socket_offload.c | 46 struct eswifi_off_socket *socket = user_data; in __process_received() local 53 k_fifo_put(&socket->fifo, pkt); in __process_received() 61 struct eswifi_off_socket *socket; in eswifi_socket_connect() local 75 socket = &eswifi->socket[sock]; in eswifi_socket_connect() 77 if (socket->state != ESWIFI_SOCKET_STATE_NONE) { in eswifi_socket_connect() 82 socket->peer_addr = *addr; in eswifi_socket_connect() 83 socket->state = ESWIFI_SOCKET_STATE_CONNECTING; in eswifi_socket_connect() 85 ret = __eswifi_off_start_client(eswifi, socket); in eswifi_socket_connect() 87 socket->state = ESWIFI_SOCKET_STATE_CONNECTED; in eswifi_socket_connect() 89 socket->state = ESWIFI_SOCKET_STATE_NONE; in eswifi_socket_connect() [all …]
|
D | eswifi.h | 79 struct eswifi_off_socket socket[ESWIFI_OFFLOAD_MAX_SOCKETS]; member 122 struct eswifi_dev *eswifi_socket_to_dev(struct eswifi_off_socket *socket) in eswifi_socket_to_dev() argument 124 return CONTAINER_OF(socket - socket->index, struct eswifi_dev, socket); in eswifi_socket_to_dev() 135 struct eswifi_off_socket *socket); 139 struct eswifi_off_socket *socket); 140 int __eswifi_accept(struct eswifi_dev *eswifi, struct eswifi_off_socket *socket); 141 int __eswifi_bind(struct eswifi_dev *eswifi, struct eswifi_off_socket *socket,
|
/Zephyr-Core-2.7.6/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 19 self.socket = None 33 socket = self.socket 34 if socket is None: 41 ch = socket.recv(1) 47 ch = socket.recv(1) 56 ch = socket.recv(2) 64 socket.send(b'+') 70 socket.send(b'-') 75 socket = self.socket 76 if socket is None: [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/ |
D | Kconfig | 19 standard POSIX names like socket(), recv(), and close(), etc., 27 If both are disabled, Zephyr's socket functions will be 30 with 3rd-party socket libraries. 58 bool "Enable TCP TLS socket option support [EXPERIMENTAL]" 62 Enable TLS socket option support which automatically establishes 82 bool "Enable DTLS socket support [EXPERIMENTAL]" 86 Enable DTLS socket support. By default only TLS over TCP is supported. 99 notification or socket is closed. 110 int "Maximum number of TLS/DTLS credentials per socket" 115 used with a specific socket. [all …]
|
/Zephyr-Core-2.7.6/scripts/coredump/ |
D | coredump_gdbserver.py | 10 import socket 103 gdbserver = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 107 gdbserver.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
/Zephyr-Core-2.7.6/samples/net/sockets/can/ |
D | README.rst | 9 The socket CAN sample is a server/client application that sends and receives 10 raw CAN frames using BSD socket API. 14 * Setup function which creates a CAN socket, binds it to a CAN network 15 interface, and then installs a CAN filter to the socket so that the 17 * Receive function which starts to listen the CAN socket and prints 33 Build the socket CAN sample application like this:
|
/Zephyr-Core-2.7.6/drivers/wifi/winc1500/ |
D | wifi_winc1500.c | 45 NMI_API SOCKET socket(uint16 u16Domain, uint8 u8Type, uint8 u8Flags); 311 sock = socket(2, type, 0); in winc1500_get() 334 SOCKET socket = (int)context->offload_context; in winc1500_bind() local 350 if (k_sem_take(&w1500_data.socket_data[socket].wait_sem, in winc1500_bind() 356 return w1500_data.socket_data[socket].ret_code; in winc1500_bind() 365 SOCKET socket = (int)context->offload_context; in winc1500_listen() local 375 if (k_sem_take(&w1500_data.socket_data[socket].wait_sem, in winc1500_listen() 380 return w1500_data.socket_data[socket].ret_code; in winc1500_listen() 394 SOCKET socket = (int)context->offload_context; in winc1500_connect() local 397 w1500_data.socket_data[socket].connect_cb = cb; in winc1500_connect() [all …]
|
/Zephyr-Core-2.7.6/doc/guides/networking/ |
D | networking-api-usage.rst | 6 Applications should use the BSD socket API defined in 7 :zephyr_file:`include/net/socket.h` to create a connection, send or receive data, 9 TCP data. See :ref:`BSD socket API <bsd_sockets_interface>` for more details. 12 applications how to create a simple server or client BSD socket based
|
D | net-stack-architecture.rst | 34 :ref:`BSD socket API <bsd_sockets_interface>` directly to create a network 50 :ref:`BSD socket API <bsd_sockets_interface>`. 76 :ref:`BSD socket API <bsd_sockets_interface>`, the following things will 110 6. A socket handler then finds an active socket to which the network packet 111 belongs and puts it in a queue for that socket, in order to separate the 117 :ref:`BSD socket API <bsd_sockets_interface>` to create a socket 131 :ref:`BSD socket API <bsd_sockets_interface>` when sending the data. 136 3. Depending on the socket type, a protocol header is added in front of the 137 data. For example, if the socket is a UDP socket, then a UDP header is
|
/Zephyr-Core-2.7.6/doc/reference/networking/ |
D | websocket.rst | 33 First a socket needs to be created and connected to the Websocket server: 37 sock = socket(family, SOCK_STREAM, IPPROTO_TCP); 42 The Websocket transport socket is then created like this: 48 The Websocket socket can then be used to send or receive data, and the 51 BSD socket API functions can be used to send and receive application data. 61 If normal BSD socket functions are used, then currently only TEXT data 65 When done, the Websocket transport socket must be closed.
|
D | sockets.rst | 29 config option and implements the following operations: ``socket()``, ``close()``, 65 Zephyr provides an extension of standard POSIX socket API, allowing to create 69 protocols with standard socket calls. See :c:enum:`net_ip_protocol_secure` type 84 later on to reference the credential during secure socket configuration with 85 socket options. 109 A secure socket can be created by specifying secure protocol type, for instance: 113 sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TLS_1_2); 115 Once created, it can be configured with socket options. For instance, the 133 Once configured, socket can be used just like a regular TCP socket. 142 Secure sockets offer the following options for socket management:
|
D | net_offload.rst | 35 functionality at the socket API level. With this approach, vendors who provide an 36 alternate implementation of the networking stack, exposing socket API for their 40 implementation on how to integrate network offloading at socket level.
|
/Zephyr-Core-2.7.6/subsys/net/lib/mqtt/ |
D | Kconfig | 28 bool "TLS support for socket MQTT Library" 30 Enable TLS support for socket MQTT Library 33 bool "Websocket support for socket MQTT Library" 35 Enable Websocket support for socket MQTT Library. 38 bool "Custom transport support for socket MQTT Library" 40 Enable custom transport support for socket MQTT Library.
|
/Zephyr-Core-2.7.6/samples/net/sockets/packet/ |
D | README.rst | 1 .. _packet-socket-sample: 3 Packet socket sample 9 This sample is a simple packet socket application showing usage 18 When the application is run, it opens a packet socket and prints
|
D | Kconfig | 1 # Private config options for packet socket sample app 6 mainmenu "Networking packet socket sample application"
|
/Zephyr-Core-2.7.6/samples/net/sockets/txtime/ |
D | Kconfig | 14 when selecting UDP socket type. 26 socket to send data, or if it uses AF_PACKET (raw) socket. 29 bool "UDP socket" 31 Use UDP socket. 34 bool "Packet socket" 37 Use AF_PACKET socket. Note that currently the application sends
|
D | README.rst | 10 SO_TXTIME socket option and expects the Ethernet driver to send 29 to create an AF_PACKET type socket. In this case, the ``echo-server``
|
/Zephyr-Core-2.7.6/subsys/net/lib/tls_credentials/ |
D | Kconfig | 21 Allows clients of the socket APIs to specify filenames 28 socket offload devices.
|
/Zephyr-Core-2.7.6/samples/net/sockets/net_mgmt/ |
D | README.rst | 9 The net-mgmt-socket sample application for Zephyr implements a listener 27 Build net-mgmt socket sample application like this:
|
/Zephyr-Core-2.7.6/samples/net/sockets/http_get/src/ |
D | http_get.c | 91 sock = socket(res->ai_family, res->ai_socktype, IPPROTO_TLS_1_2); in main() 93 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
|
/Zephyr-Core-2.7.6/tests/net/socket/misc/ |
D | CMakeLists.txt | 5 project(socket-misc)
|
/Zephyr-Core-2.7.6/tests/net/socket/ |
D | socket_helpers.h | 19 ret = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in prepare_listen_sock_udp_v4() 38 ret = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in prepare_listen_sock_udp_v6() 60 *sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in prepare_sock_udp_v4()
|
/Zephyr-Core-2.7.6/drivers/modem/ |
D | Kconfig | 46 modem interface, command handler, pin config and socket handling each 100 bool "Generic modem socket support layer" 106 object with your socket data and pass it's reference to 110 int "Maximum number of stored packet sizes per socket" 116 the maximum number of packet sizes the socket can keep track of.
|