Main Page   Compound List   File List   Compound Members   File Members  

lib/iface.c File Reference

IO interface management. More...

#include "gobj/iface.h"
#include "gobj/errors.h"

Functions

int gj_iface_serve (Gj_Ctx* ctx, Gj_IfaceIncomingConn* conn)
 The serving function. More...

Gj_IdGj_iface_getId (Gj_Iface* iface)
 Get the id of an interface. More...

int Gj_iface_listen (Gj_Ctx* ctx, Gj_Iface* iface)
 Listen on the given interface. More...


Detailed Description

IO interface management.


Function Documentation

int gj_iface_serve ( Gj_Ctx * ctx,
Gj_IfaceIncomingConn * conn )
 

The serving function.

For internal use only.

Gj_Id * Gj_iface_getId ( Gj_Iface * iface )
 

Get the id of an interface.

The returned id is STILL OWNED by the interface.

int Gj_iface_listen ( Gj_Ctx * ctx,
Gj_Iface * iface )
 

Listen on the given interface.

Returns:
0 on success, -1 otherwise.


Generated at Fri Aug 17 18:28:58 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000