MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / send

Function send

components/net/sal/socket/net_sockets.c:554–559  ·  view source on GitHub ↗

* @brief Sends data on a connected socket. * * This function sends data to a connected socket, specified by the file descriptor 's'. * It is typically used with connection-oriented protocols (e.g., TCP). * * @param s The file descriptor of the socket to send data on. * The socket must be connected to a remote peer. * @param dataptr A pointer to the buffer containing

Source from the content-addressed store, hash-verified

552 * @see recv() Receives data from a connected socket.
553 */
554int send(int s, const void *dataptr, size_t size, int flags)
555{
556 int socket = dfs_net_getsocket(s);
557
558 return sal_sendto(socket, dataptr, size, flags, NULL, 0);
559}
560RTM_EXPORT(send);
561
562/**

Callers 6

file_mode_sendFunction · 0.85
tcpclientFunction · 0.85
tcpclientFunction · 0.85
tcpservFunction · 0.85
tcp_senddataFunction · 0.85
tcpecho_socket_entryFunction · 0.85

Calls 2

dfs_net_getsocketFunction · 0.85
sal_sendtoFunction · 0.85

Tested by 1

tcpecho_socket_entryFunction · 0.68