version 1.9, 2006/10/23 23:47:53
|
version 1.9.2.1, 2006/10/26 14:43:39
|
|
|
/*! | /*! |
\file ip.h | \file ip.h |
\brief General TCP/IP routines. | \brief General TCP/IP routines. |
|
|
*/ | */ |
|
#ifndef _IP_H_ |
#ifndef _IP_H |
#define _IP_H_ |
#define _IP_H |
#include "cmpir_common.h" |
|
|
#include "proxy.h" | #include "proxy.h" |
| |
#define PEGASUS_SUPPRESS_ERROR_MESSAGE 0 | #define PEGASUS_SUPPRESS_ERROR_MESSAGE 0 |
|
|
char *tmphbuf, | char *tmphbuf, |
int hbuflen); | int hbuflen); |
| |
void accept_connections ( int port, |
PEGASUS_EXPORT void accept_connections ( |
|
int port, |
void (* __connection_handler) ( int ), | void (* __connection_handler) ( int ), |
int multithreaded ); | int multithreaded ); |
int open_connection ( const char * address, int port, int print_errmsg ); |
|
|
PEGASUS_EXPORT int open_connection ( const char * address, int port, int print_errmsg ); |
| |
int close_connection( int port ); | int close_connection( int port ); |
|
|
void get_peer_address ( int socket, char * buf ); | void get_peer_address ( int socket, char * buf ); |
| |
#endif | #endif |
|
|