summaryrefslogtreecommitdiffstats
path: root/buffer_write.c
blob: 1b710866df4d5eb24e40e720474f5406b5650b09 (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 "buffer.h"

int buffer_unix_write(int fd,const char *buf,unsigned int len)
{
	return write(fd,buf,len);
}

int buffer_tcp_write(int fd, const char *buf, unsigned int len)
{
	return send(fd, buf,len,0);
}