Data Structures | Defines | Typedefs | Enumerations | Functions

contrib/maloc/src/vsys/maloc/vio.h File Reference

Class Vio: virtual <SDIO/FILE/BUFF/UNIX/INET> I/O layer. More...

#include <maloc/maloc_base.h>
#include <maloc/vnm.h>
Include dependency graph for vio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Vio
 Class Vio: Definition. More...

Defines

#define VPORTNUMBER   14916
#define VIO_MAXBUF   10

Typedefs

typedef enum VIOtype VIOtype
 Class Vio: Parameters and datatypes.
typedef enum VIOfrmt VIOfrmt
 Class Vio: Parameters and datatypes.
typedef enum VIOrwkey VIOrwkey
 Class Vio: Parameters and datatypes.
typedef struct Vio Vio
 Class Vio: Definition.

Enumerations

enum  VIOtype {
  VIO_NO_TYPE, VIO_SDIO, VIO_BUFF, VIO_FILE,
  VIO_UNIX, VIO_INET
}
 

Class Vio: Parameters and datatypes.


enum  VIOfrmt { VIO_NO_FRMT, VIO_XDR, VIO_ASC }
 

Class Vio: Parameters and datatypes.


enum  VIOrwkey { VIO_NO_RW, VIO_R, VIO_W }
 

Class Vio: Parameters and datatypes.


Functions

VEXTERNC void Vio_start (void)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_stop (void)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC VioVio_ctor (const char *socktype, const char *datafrmt, const char *hostname, const char *filename, const char *rwkey)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_ctor2 (Vio *thee, const char *socktype, const char *datafrmt, const char *hostname, const char *filename, const char *rwkey)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_dtor (Vio **thee)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_dtor2 (Vio *thee)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC VioVio_socketOpen (char *key, const char *iodev, const char *iofmt, const char *iohost, const char *iofile)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_socketClose (Vio **sock)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_setWhiteChars (Vio *thee, char *whiteChars)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_setCommChars (Vio *thee, char *commChars)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_accept (Vio *thee, int nonblock)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_acceptFree (Vio *thee)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_connect (Vio *thee, int nonblock)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_connectFree (Vio *thee)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_scanf (Vio *thee, char *parms,...)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_printf (Vio *thee, char *parms,...)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_read (Vio *thee, char *buf, int bufsize)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_write (Vio *thee, char *buf, int bufsize)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC int Vio_bufSize (Vio *thee)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC char * Vio_bufGive (Vio *thee)
 Class Vio: Non-Inlineable method (vio.c)
VEXTERNC void Vio_bufTake (Vio *thee, char *buf, int bufsize)
 Class Vio: Non-Inlineable method (vio.c)

Detailed Description

Class Vio: virtual <SDIO/FILE/BUFF/UNIX/INET> I/O layer.

Version:
Id:
vio.h,v 1.21 2008/02/05 00:11:33 fetk Exp
Author:
Michael Holst
Attention:
 *
 * MALOC = < Minimal Abstraction Layer for Object-oriented C >
 * Copyright (C) 1994--2008 Michael Holst
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 * 
 *  

Definition in file vio.h.


Define Documentation

#define VIO_MAXBUF   10

number of internal buffers (BUFF datatype)

Definition at line 45 of file vio.h.

#define VPORTNUMBER   14916

our portbase; 5000 < VPORTNUMBER < 49152

Definition at line 44 of file vio.h.