FACT++  1.0
test_tcp.c File Reference
#include <ctype.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <netdb.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for test_tcp.c:

Go to the source code of this file.

Macros

#define closesock   close
 
#define readsock(a, b, c, d)   read(a,b,c)
 
#define writesock(a, b, c, d)   write(a,b,c)
 
#define ushort   unsigned short
 
#define TCP_RCV_BUF_SIZE   16384/*32768*//*65536*/
 
#define TCP_SND_BUF_SIZE   16384/*32768*//*65536*/
 

Functions

int tcp_open_client (char *node, int port)
 
int tcp_write (int path, char *buffer, int size)