test06_cli.c File Reference

#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <net/netlib.h>
#include <net/gen/netdb.h>
#include <net/gen/in.h>
#include <net/gen/tcp.h>
#include <net/gen/tcp_io.h>
#include <net/hton.h>

Include dependency graph for test06_cli.c:

Go to the source code of this file.

Defines

#define PORT   6060L

Functions

int tcp_connect (char *host, long port)
int main (int argc, char *argv[])


Define Documentation

#define PORT   6060L
 

Definition at line 27 of file test06_cli.c.


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 112 of file test06_cli.c.

References close, errno, exit(), FD_ISSET, FD_SET, FD_ZERO, fprintf(), gets(), NULL, PORT, printf, read, select, stderr, strcmp, strlen(), tcp_connect(), and write.

int tcp_connect char *  host,
long  port
 

Definition at line 29 of file test06_cli.c.

References close, EAGAIN, errno, fprintf(), getenv(), gethostbyname, hostent::h_length, htons, ioctl, memcpy(), NULL, NWIOGTCPCONF, NWIOSTCPCONF, NWIOTCPCONN, nwio_tcpconf::nwtc_flags, NWTC_LP_SEL, nwio_tcpconf::nwtc_remaddr, nwio_tcpconf::nwtc_remport, NWTC_SET_RA, NWTC_SET_RP, nwio_tcpcl::nwtcl_flags, O_RDWR, open, printf, result, sleep, stderr, TCP_DEVICE, and tcp_device.


Generated on Fri Apr 14 23:21:54 2006 for minix by  doxygen 1.4.6