2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
/* bsd-socket(2)-lookalike */
|
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdlib.h>
|
2005-07-08 14:25:13 +02:00
|
|
|
#include <stdio.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <sys/types.h>
|
2005-07-08 14:25:13 +02:00
|
|
|
#include <unistd.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <net/gen/socket.h>
|
|
|
|
#include <net/gen/emu.h>
|
|
|
|
#include <net/gen/tcp.h>
|
|
|
|
#include <net/gen/in.h>
|
|
|
|
#include <net/gen/tcp_hdr.h>
|
|
|
|
#include <net/gen/tcp_io.h>
|
|
|
|
|
|
|
|
ssize_t
|
|
|
|
recv(int s, void *buf, size_t len, int flags)
|
|
|
|
{
|
|
|
|
return read(s, buf, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
ssize_t
|
|
|
|
send(int s, void *buf, size_t len, int flags)
|
|
|
|
{
|
|
|
|
return write(s, buf, len);
|
|
|
|
}
|
|
|
|
|