Skip to content

Instantly share code, notes, and snippets.

@martinomburajr
Created May 31, 2019 05:15
Show Gist options
  • Save martinomburajr/d6280d6f9457ef5c7a7f2b07c330115b to your computer and use it in GitHub Desktop.
Save martinomburajr/d6280d6f9457ef5c7a7f2b07c330115b to your computer and use it in GitHub Desktop.
Sending a buffer over network unix
#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