37 #include <maloc/maloc_base.h>
39 #include <maloc/vnm.h>
47 #define VPORTNUMBER 14916
50 typedef enum VIOtype {
59 typedef enum VIOfrmt {
65 typedef enum VIOrwkey {
110 char whiteChars[VMAX_ARGNUM];
111 char commChars[VMAX_ARGNUM];
113 char ioBuffer[VMAX_BUFSIZE];
116 char putBuffer[VMAX_BUFSIZE];
131 #if !defined(VINLINE_MALOC)
141 void Vio_start(
void);
144 Vio* Vio_ctor(
const char *socktype,
const char *datafrmt,
145 const char *hostname,
const char *filename,
const char *rwkey);
146 int Vio_ctor2(
Vio *thee,
const char *socktype,
const char *datafrmt,
147 const char *hostname,
const char *filename,
const char *rwkey);
149 void Vio_dtor(
Vio **thee);
150 void Vio_dtor2(
Vio *thee);
152 Vio *Vio_socketOpen(
char *key,
153 const char *iodev,
const char *iofmt,
154 const char *iohost,
const char *iofile);
155 void Vio_socketClose(
Vio **sock);
157 void Vio_setWhiteChars(
Vio *thee,
char *whiteChars);
158 void Vio_setCommChars(
Vio *thee,
char *commChars);
160 int Vio_accept(
Vio *thee,
int nonblock);
161 void Vio_acceptFree(
Vio *thee);
163 int Vio_connect(
Vio *thee,
int nonblock);
164 void Vio_connectFree(
Vio *thee);
166 int Vio_scanf(
Vio *thee,
char *parms, ...);
167 int Vio_printf(
Vio *thee,
char *parms, ...);
169 int Vio_read(
Vio *thee,
char *buf,
int bufsize);
170 int Vio_write(
Vio *thee,
char *buf,
int bufsize);
172 int Vio_bufSize(
Vio *thee);
173 char* Vio_bufGive(
Vio *thee);
174 void Vio_bufTake(
Vio *thee,
char *buf,
int bufsize);