Defines | Functions | Variables
connectto.cpp File Reference

socket client utils. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include "iclient3.h"

Go to the source code of this file.


#define EXIT   _exit


void error (int status, int err, const char *fmt,...)
void set_address (const char *hname, const char *sname, struct sockaddr_in *sap, const char *protocol)
int readline (SOCKET fd, char *bufptr, size_t len)


char * program_name

Detailed Description

socket client utils.

Definition in file connectto.cpp.

Define Documentation

#define EXIT   _exit

Definition at line 37 of file connectto.cpp.

Referenced by error().

Function Documentation

void error ( int  status,
int  err,
const char *  fmt,

Definition at line 40 of file connectto.cpp.

References EXIT, and program_name.

Referenced by Frame::appendTag(), and set_address().

int readline ( SOCKET  fd,
char *  bufptr,
size_t  len 
void set_address ( const char *  hname,
const char *  sname,
struct sockaddr_in *  sap,
const char *  protocol 

Definition at line 55 of file connectto.cpp.

References error().

Referenced by connect_to().

Variable Documentation

char* program_name

Definition at line 35 of file connectto.cpp.

Referenced by error().