Table of Contents

Name

InvalidIO - AccelNET tcp socket management

Description

InvalidIO is a collection of functions used to manage tcp sockets.

init_InvalidIO() initializes the invalid I/O system. This function must be called before any sockets are created.

add_InvalidIO() adds a file descriptor to the invalid I/O list. This function is called by SendRec(3tcp) and RecvRec(3tcp) when an error occurs. Usually it will not be called by a program directly.

rem_InvalidIO removes a file descriptor from the invalid I/O list. Usually this function is called when the socket is closed by the program as part of invalid I/O cleanup.

get_InvalidIO gets the 1st available bad fd from invalid I/O list. This function is called by cleanup software.

test_InvalidIO test to see if fd is on the invalid I/O list. This function is called by SendRec(3tcp) and RecvRec(3tcp) before I/O is attempted. If it returns true I/O is skipped. Usually it will not be called by a program directly.

This function is part of libtcp.

Syntax


void init_InvalidIO(void);
void add_InvalidIO(int fd);
void rem_InvalidIO(int fd);
int get_InvalidIO(int *fd);
int test_InvalidIO(int fd);

Arguments

fd

Depending on the function where this is used this argument is either a file descriptor or a pointer to variable in which to return a file descriptor.

Returns

init_InvalidIO returns nothing.

add_InvalidIO returns nothing.

rem_InvalidIO returns nothing.

get_InvalidIO returns the number of file descriptors in the bad I/O list. If the returned count is 0, fd is set to -1.

test_InvalidIO returns 1 if the file descriptor is invalid, else it returns 0.

See Also

libtcp(3tcp)

Manual page revision

$Id: InvalidIO.3,v 1.1 2002/04/07 19:50:52 kitchen Exp $


Table of Contents