summaryrefslogtreecommitdiffstats
path: root/u8_read.c
blob: 71e3ad73c813d954057652ab694c93408e0b519a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "uint.h"

int u8_unix_read(int fd,u8 *buf,u32 len)
{
	return read(fd,(char*)buf,(int)len);
}

int u8_tcp_read(int fd,u8 *buf, u32 len)
{
	return recv(fd, (char*)buf,(int)len,0);
}