netclient.h File Reference

#include <stdlib.h>

Go to the source code of this file.

Functions

void nc_error (char *where)
ncnc_open (char *address, short port)
int nc_close (struct nc *nc)
int nc_read (struct nc *nc, unsigned char *buf, size_t len)
int nc_read_line (struct nc *nc, unsigned char *buf, size_t maxlen)
int nc_write (struct nc *nc, unsigned char *buf, size_t len)


Function Documentation

int nc_close struct nc nc  ) 
 

Definition at line 188 of file netclient.c.

References closesocket, nc::fd, and nc_dump().

Referenced by hc_free().

void nc_error char *  where  ) 
 

Definition at line 105 of file netclient.c.

References errno, and RTV_ERRLOG.

Referenced by fill_rcv_buf(), nc_init(), nc_open(), and nc_write().

struct nc* nc_open char *  address,
short  port
 

Definition at line 137 of file netclient.c.

References INVALID_SOCKET, nc_dump(), nc_error(), nc_init(), nc_initted, RTV_DBGLOG, RTV_ERRLOG, RTVLOG_NET, and SOCK_STREAM.

Referenced by hc_start_request().

int nc_read struct nc nc,
unsigned char *  buf,
size_t  len
 

Definition at line 220 of file netclient.c.

References fill_rcv_buf(), nc::high, nc::low, MIN, and nc::rcv_buf.

Referenced by hc_read_pieces(), and nc_read_line().

int nc_read_line struct nc nc,
unsigned char *  buf,
size_t  maxlen
 

Definition at line 241 of file netclient.c.

References nc_read().

Referenced by hc_post_request(), hc_read_pieces(), and hc_send_request().

int nc_write struct nc nc,
unsigned char *  buf,
size_t  len
 

Definition at line 262 of file netclient.c.

References nc::fd, nc_dump(), and nc_error().

Referenced by hc_post_request(), and hc_send_request().


Generated on Fri Sep 10 03:13:24 2010 for mvpmc by  doxygen 1.4.6