Socket library

This commit is contained in:
Philip Homburg
2005-07-27 11:57:59 +00:00
parent 40b364a6db
commit e1f43abc09
14 changed files with 941 additions and 0 deletions

11
lib/ip/send.c Normal file
View File

@@ -0,0 +1,11 @@
#include <stdlib.h>
#include <sys/socket.h>
ssize_t send(int socket, const void *buffer, size_t length, int flags)
{
struct sockaddr sa;
sa.sa_family= AF_UNSPEC;
return sendto(socket, buffer, length, flags, &sa, sizeof(sa));
}