Created
May 31, 2019 05:15
-
-
Save martinomburajr/d6280d6f9457ef5c7a7f2b07c330115b to your computer and use it in GitHub Desktop.
Sending a buffer over network unix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <sys/types.h> | |
#include <sys/socket.h> | |
ssize_t send(int sockfd, const void *buf, size_t len, int flags); | |
ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, | |
const struct sockaddr *dest_addr, socklen_t addrlen); | |
ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment