altsocklib.h File Reference

Portable socket layer. More...

Go to the source code of this file.

Data Structures

struct  recvbuffer_t
 don't use this directly More...

Functions

Documentation can be foud here
http://flinflon.brandonu.ca/Dueck/1999/62306/sockets/Default.htm
But these functions must not be used directly, use the socketcommon.h layer.

int sockopen (char *host, struct in_addr bind_add, unsigned short port)
 if host == NULL means to bind as a server on bind_add, =! NULL resolves and connects
int sockinfo (int sock, unsigned char *info)
int sockclose (int sock)
int senddata (int socket, char *buffer, int length)
int senddata_raw (int socket, const char *buffer, int length)
int recvdata (int socket, char *buffer, int maxsize)
void sockerror (char *msg)
recvbuffer_trecvBufferCreate (int size)
void recvBufferDestroy (recvbuffer_t *rb)
int recvstring (int socket, char *buffer, int maxsize, recvbuffer_t *r)
int recvstring_with_timeout (int socket, char *buffer, int maxsize, recvbuffer_t *r, int timeout)
int sendstring (int socket, char *string)
int sendstring_raw (int socket, const char *string)
void sockinit ()


Detailed Description

Portable socket layer.

Author:
Gerald Dueck

Andrew Lynch

Enrico Tassi   <sorry guy>

Definition in file altsocklib.h.


Function Documentation

recvbuffer_t* recvBufferCreate ( int  size  ) 

void recvBufferDestroy ( recvbuffer_t rb  ) 

int recvdata ( int  socket,
char *  buffer,
int  maxsize 
)

int recvstring ( int  socket,
char *  buffer,
int  maxsize,
recvbuffer_t r 
)

int recvstring_with_timeout ( int  socket,
char *  buffer,
int  maxsize,
recvbuffer_t r,
int  timeout 
)

int senddata ( int  socket,
char *  buffer,
int  length 
)

int senddata_raw ( int  socket,
const char *  buffer,
int  length 
)

int sendstring ( int  socket,
char *  string 
)

int sendstring_raw ( int  socket,
const char *  string 
)

int sockclose ( int  sock  ) 

void sockerror ( char *  msg  ) 

int sockinfo ( int  sock,
unsigned char *  info 
)

void sockinit (  ) 

int sockopen ( char *  host,
struct in_addr  bind_add,
unsigned short  port 
)

if host == NULL means to bind as a server on bind_add, =! NULL resolves and connects


Generated on Sat Nov 1 15:55:53 2008 for FreePOPs by  doxygen 1.5.6