etcp.h File Reference

#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <netdb.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "skel.h"

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define NLISTEN   5
#define NSMB   5
#define SMBUFSZ   256

Typedefs

typedef void(* tofunc_t )(void *)

Functions

void error (int, int, char *,...)
int readn (SOCKET, char *, size_t)
int readvrec (SOCKET, char *, size_t)
int readcrlf (SOCKET, char *, size_t)
int readline (SOCKET, char *, size_t)
int tcp_server (char *, char *)
int tcp_client (char *, char *)
int udp_server (char *, char *)
int udp_client (char *, char *, struct sockaddr_in *)
int tselect (int, fd_set *, fd_set *, fd_set *)
unsigned int timeout (tofunc_t, void *, int)
void untimeout (unsigned int)
void init_smb (int)
void * smballoc (void)
void smbfree (void *)
void smbsend (SOCKET, void *)
void * smbrecv (SOCKET)
void set_address (char *, char *, struct sockaddr_in *, char *)

Variables

char * program_name


Define Documentation

#define FALSE   0

Definition at line 25 of file etcp.h.

#define NLISTEN   5

Definition at line 26 of file etcp.h.

Referenced by main().

#define NSMB   5

Definition at line 27 of file etcp.h.

#define SMBUFSZ   256

Definition at line 28 of file etcp.h.

#define TRUE   1

Definition at line 24 of file etcp.h.


Typedef Documentation

typedef void( * tofunc_t)(void *)

Definition at line 36 of file etcp.h.


Function Documentation

void error ( int  ,
int  ,
char *  ,
  ... 
)

Definition at line 165 of file mdsshell.af_inet.c.

References program_name.

Referenced by build_socket(), main(), and set_address().

void init_smb ( int   ) 

int readcrlf ( SOCKET  ,
char *  ,
size_t   
)

int readline ( SOCKET  ,
char *  ,
size_t   
)

Definition at line 4 of file readline.c.

Referenced by client_work(), and interpreter().

int readn ( SOCKET  ,
char *  ,
size_t   
)

int readvrec ( SOCKET  ,
char *  ,
size_t   
)

void set_address ( char *  ,
char *  ,
struct sockaddr_in *  ,
char *   
)

Referenced by main().

void* smballoc ( void   ) 

void smbfree ( void *   ) 

void* smbrecv ( SOCKET   ) 

void smbsend ( SOCKET  ,
void *   
)

int tcp_client ( char *  ,
char *   
)

int tcp_server ( char *  ,
char *   
)

unsigned int timeout ( tofunc_t  ,
void *  ,
int   
)

Referenced by doMdsValue().

int tselect ( int  ,
fd_set *  ,
fd_set *  ,
fd_set *   
)

int udp_client ( char *  ,
char *  ,
struct sockaddr_in *   
)

int udp_server ( char *  ,
char *   
)

void untimeout ( unsigned  int  ) 


Variable Documentation

char* program_name

Definition at line 161 of file mdsshell.af_inet.c.

Referenced by error().


Generated on Wed Feb 3 08:08:33 2010 for mdsshell by  doxygen 1.5.7.1