Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 45) sorted by relevance

12

/components/net/sal/socket/
A Dnet_sockets.c47 int socket = dfs_net_getsocket(s); in accept() local
122 int socket = dfs_net_getsocket(s); in bind() local
155 int socket = -1; in shutdown() local
158 socket = dfs_net_getsocket(s); in shutdown()
159 if (socket < 0) in shutdown()
635 int socket; in socket() local
664 if (socket >= 0) in socket()
681 RTM_EXPORT(socket);
705 int socket = -1; in closesocket() local
708 socket = dfs_net_getsocket(s); in closesocket()
[all …]
/components/net/at/at_socket/
A Dat_socket.h111 int socket; member
154 int at_closesocket(int socket);
155 int at_shutdown(int socket, int how);
158 int at_listen(int socket, int backlog);
183 #define closesocket(socket) at_closesocket(socket) argument
184 #define shutdown(socket, how) at_shutdown(socket, how) argument
185 #define bind(socket, name, namelen) at_bind(socket, name, namelen) argument
186 #define connect(socket, name, namelen) at_connect(socket, name, namelen) argument
187 #define sendto(socket, data, size, flags, to, tolen) at_sendto(socket, data, size, flags, to… argument
188 #define send(socket, data, size, flags) at_send(socket, data, size, flags) argument
[all …]
A Dat_socket.c75 if (at_sock && socket == at_sock->socket) in at_get_socket()
362 if (at_sock && sock->socket == at_sock->socket) in free_socket()
419 sock->socket = idx; in alloc_socket_by_device()
552 return sock->socket; in at_socket()
555 int at_closesocket(int socket) in at_closesocket() argument
563 sock = at_get_socket(socket); in at_closesocket()
594 sock = at_get_socket(socket); in at_shutdown()
672 sock = at_get_socket(socket); in at_bind()
856 sock = at_get_socket(socket); in at_listen()
905 sock = at_get_socket(socket); in at_connect()
[all …]
/components/net/sal/dfs_net/
A Ddfs_net.c23 int socket; in dfs_net_getsocket() local
29 if (file->vnode->type != FT_SOCKET) socket = -1; in dfs_net_getsocket()
30 else socket = (int)(size_t)file->vnode->data; in dfs_net_getsocket()
32 return socket; in dfs_net_getsocket()
38 int socket = (int)(size_t)file->vnode->data; in dfs_net_ioctl() local
40 ret = sal_ioctlsocket(socket, cmd, args); in dfs_net_ioctl()
56 int socket = (int)(size_t)file->vnode->data; in dfs_net_read() local
75 int socket = (int)(size_t)file->vnode->data; in dfs_net_write() local
89 int socket; in dfs_net_close() local
94 socket = (int)(size_t)file->vnode->data; in dfs_net_close()
[all …]
/components/net/sal/impl/
A Daf_inet_lwip.c98 s = conn->socket; in event_callback()
107 if (conn->socket < 0) in event_callback()
111 conn->socket--; in event_callback()
116 s = conn->socket; in event_callback()
178 int socket; in inet_socket() local
181 if (socket >= 0) in inet_socket()
185 lwsock = lwip_tryget_socket(socket); in inet_socket()
191 return socket; in inet_socket()
214 return lwip_accept(socket, addr, addrlen); in inet_accept()
243 return lwip_ioctl(socket, cmd, arg); in inet_ioctlsocket()
[all …]
A Dproto_mbedtls.c42 static void *mebdtls_socket(int socket) in mebdtls_socket() argument
47 if (socket < 0) in mebdtls_socket()
74 session->server_fd.fd = socket; in mebdtls_socket()
82 int socket, ret; in mbedtls_net_send_cb() local
88 socket = ((mbedtls_net_context *) ctx)->fd; in mbedtls_net_send_cb()
89 sock = sal_get_socket(socket); in mbedtls_net_send_cb()
120 int socket, ret; in mbedtls_net_recv_cb() local
125 socket = ((mbedtls_net_context *) ctx)->fd; in mbedtls_net_recv_cb()
126 sock = sal_get_socket(socket); in mbedtls_net_recv_cb()
203 int socket; in mbedtls_closesocket() local
[all …]
/components/net/sal/include/
A Dsal_socket.h333 int sal_accept(int socket, struct sockaddr *addr, socklen_t *addrlen);
334 int sal_bind(int socket, const struct sockaddr *name, socklen_t namelen);
335 int sal_shutdown(int socket, int how);
336 int sal_getpeername (int socket, struct sockaddr *name, socklen_t *namelen);
341 int sal_listen(int socket, int backlog);
342 int sal_sendmsg(int socket, const struct msghdr *message, int flags);
343 int sal_recvmsg(int socket, struct msghdr *message, int flags);
344 int sal_recvfrom(int socket, void *mem, size_t len, int flags,
346 int sal_sendto(int socket, const void *dataptr, size_t size, int flags,
350 int sal_closesocket(int socket);
[all …]
A Dsal_tls.h43 void* (*socket)(int socket); member
A Dsal_low_lvl.h55 int socket; /* SAL socket descriptor */ member
71 int (*socket) (int domain, int type, int protocol); member
/components/net/sal/src/
A Dsal_socket.c353 socket = socket - SAL_SOCKET_OFFSET; in sal_get_socket()
355 if (socket < 0 || socket >= (int) st->max_socket) in sal_get_socket()
363 return st->sockets[socket]; in sal_get_socket()
1032 int socket, proto_socket; in sal_socket() local
1037 socket = socket_new(); in sal_socket()
1038 if (socket < 0) in sal_socket()
1047 socket_delete(socket); in sal_socket()
1069 sock->user_data_tls = proto_tls->ops->socket(socket); in sal_socket()
1078 return sock->socket; in sal_socket()
1080 socket_delete(socket); in sal_socket()
[all …]
/components/net/sal/
A DSConscript8 src += ['socket/net_netdb.c']
11 CPPPATH += [cwd + '/include/socket']
27 src += ['socket/net_sockets.c']
31 CPPPATH += [cwd + '/include/socket/sys_socket']
A DKconfig2 bool "SAL: socket abstraction layer"
34 Enable BSD socket operated by file system API
35 …Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX …
/components/dfs/dfs_v1/filesystems/nfs/rpc/
A Dpmap.c34 int socket = -1; in pmap_getport() local
41 &socket, RPCSMALLMSGSIZE, in pmap_getport()
58 (void) lwip_close(socket); in pmap_getport()
/components/lwp/
A Dlwp_syscall.c5119 ret = accept(socket, &ksa, &kaddrlen); in sys_accept()
5184 ret = bind(socket, &sa, namelen); in sys_bind()
5190 ret = bind(socket, &sa, namelen); in sys_bind()
5224 sysret_t sys_shutdown(int socket, int how) in sys_shutdown() argument
5226 return shutdown(socket, how); in sys_shutdown()
5565 return listen(socket, backlog); in sys_listen()
5769 ret = recvmsg(socket, &kmsg, flgs); in sys_recvmsg()
6010 ret = sendmsg(socket, &kmsg, flgs); in sys_sendmsg()
6213 fd = socket(domain, type, protocol); in sys_socket()
6298 sysret_t sys_closesocket(int socket) in sys_closesocket() argument
[all …]
/components/net/sal/include/socket/sys_socket/sys/
A Dsocket.h43 int socket(int domain, int type, int protocol);
63 #define socket(domain, type, protocol) sal_socket(domain, type, protocol)
/components/net/lwip/lwip-2.1.2/
A DFEATURES8 - APIs: specialized APIs for enhanced performance & zero copy, optional Berkeley-alike socket API
A DCHANGELOG185 - Support IP_HDRINCL socket option
318 invalid/reused socket) by not allowing to reallocate a socket that has
801 leaking a netconn/socket (see bug #46701)
969 * netconn/socket api: fixed bug #44225 "closing TCP socket should time out
1701 plus many cleanups in socket & netconn API.
1891 implemented shutdown at socket level.
2389 socket.
2824 * api.h, api_msg.h, api_lib.c, api_msg.c, socket.h, socket.c: Added sequential
4169 * New socket options.
4291 socket library was not handled correctly.
[all …]
/components/net/lwip/lwip-1.4.1/src/api/
A Dsockets.c405 nsock->rcvevent += (s16_t)(-1 - newconn->socket); in lwip_accept()
406 newconn->socket = newsock; in lwip_accept()
1010 conn->socket = i;
1272 s = conn->socket;
1280 if (conn->socket < 0) {
1282 conn->socket--;
1287 s = conn->socket;
/components/libc/posix/
A DKconfig62 bool "Enable BSD Socket I/O <sys/socket.h> <netdb.h>"
/components/net/lwip/lwip-1.4.1/
A DUPGRADING127 * Implemented shutdown() at socket- and netconn-level
132 * Implemented many nonblocking socket/netconn functions
/components/net/lwip/lwip-2.0.3/src/include/lwip/
A Dsockets.h469 #define lwip_socket socket
544 #define socket(domain,type,protocol) lwip_socket(domain,type,protocol) macro
/components/net/lwip/lwip-2.0.3/
A DCHANGELOG65 invalid/reused socket) by not allowing to reallocate a socket that has
548 leaking a netconn/socket (see bug #46701)
716 * netconn/socket api: fixed bug #44225 "closing TCP socket should time out
1448 plus many cleanups in socket & netconn API.
1638 implemented shutdown at socket level.
2136 socket.
2571 * api.h, api_msg.h, api_lib.c, api_msg.c, socket.h, socket.c: Added sequential
3916 * New socket options.
4038 socket library was not handled correctly.
4071 * read() in BSD socket library could drop data.
[all …]
/components/net/lwip/lwip-1.4.1/doc/
A Drawapi.txt9 * BSD-style socket API.
12 to use the lwIP stack. It is quite similar to the BSD socket API. The
18 The socket API is a compatibility API for existing applications,
20 provide all functions needed to run socket API applications running
31 this thread! Application threads using the sequential- or socket API
100 the sequential API and of the BSD socket API. A new TCP connection
/components/net/lwip/lwip-1.4.1/src/include/lwip/
A Dapi.h160 int socket; member
/components/net/lwip/lwip-2.1.2/src/include/lwip/
A Dsockets.h567 #define lwip_socket socket
663 #define socket(domain,type,protocol) lwip_socket(domain,type,protocol) macro

Completed in 59 milliseconds

12