sock.h File Reference

#include "util.h"
#include <netinet/in.h>

Go to the source code of this file.

Data Structures

struct  SOCKINFO

Defines

#define SD_RECEIVE   0x00
#define SD_SEND   0x01
#define SD_BOTH   0x02

Functions

int sock_init (OUT SOCKINFO *info, IN int sockfd)
int sock_init_with_ip (OUT SOCKINFO *info, IN int sockfd, IN struct in_addr foreign_ip_addr, IN unsigned short foreign_ip_port)
int sock_read (IN SOCKINFO *info, OUT char *buffer, IN size_t bufsize, INOUT int *timeoutSecs)
int sock_check_w (IN SOCKINFO *info)
int sock_write (IN SOCKINFO *info, IN char *buffer, IN size_t bufsize, INOUT int *timeoutSecs)
int sock_destroy (INOUT SOCKINFO *info, int)

Define Documentation

#define SD_BOTH   0x02

Definition at line 45 of file sock.h.

#define SD_RECEIVE   0x00

Definition at line 43 of file sock.h.

#define SD_SEND   0x01

Definition at line 44 of file sock.h.


Function Documentation

int sock_check_w ( IN SOCKINFO info  ) 
int sock_destroy ( INOUT SOCKINFO info,
int   
)
int sock_init ( OUT SOCKINFO info,
IN int  sockfd 
)
int sock_init_with_ip ( OUT SOCKINFO info,
IN int  sockfd,
IN struct in_addr  foreign_ip_addr,
IN unsigned short  foreign_ip_port 
)
int sock_read ( IN SOCKINFO info,
OUT char *  buffer,
IN size_t  bufsize,
INOUT int *  timeoutSecs 
)
int sock_write ( IN SOCKINFO info,
IN char *  buffer,
IN size_t  bufsize,
INOUT int *  timeoutSecs 
)

Generated on Fri Mar 26 20:16:55 2010 for MediaTomb by  doxygen 1.6.1