Content-type: text/html Manpage of SOCKUADDCONNECTION

SOCKUADDCONNECTION

Section: CIM MRL (3)
Updated: Sept 1995
Index Return to Main Contents
 

NAME

SockUAddConnection - add a new client connection  

SYNOPSIS

#include <SocketUtilities.h>

int SockUAddConnection(SockUConnection **links, int fd)
 

DESCRIPTION

SockUAddConnection() adds a client accessible through file descriptor fd to the server's list of connected clients, links. If a client accesses the server through the server's socket, then this function should not be called; the connection should be made with SockUGetNextConnection(). However, for unusual clients, this function may be useful. For instance, some clients may not even be socket-connected. So, a connection to stdin or an open file may be made, and will be handled the same as a socket connection. All that is required of a client is that it is accessible via a known file descriptor.  

RETURN VALUE

SockUAddConnection() returns 1 if the file descriptor fd was not present in the list in links, but was added to the end of the list. A 0 is returned if the file descriptor was already present in the list, in which case this function does not add or modify anything.  

FILES

/local/mrl/include/SocketUtilities.h
header file
/local/mrl/lib/libSocketUtilities.a
library object code
 

SEE ALSO

libSocketUtilities(3), SockUGetNextConnection(3)  

AUTHORS


Gilbert Soucy, Paul MacKenzie, Marc Bolduc
({soucy,mackenzie,bolduc}@cim.mcgill.ca)
Centre for Intelligent Machines
McGill University, Montreal, Quebec, Canada.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
FILES
SEE ALSO
AUTHORS

This document was created by man2html, using the manual pages.
Time: 16:40:16 GMT, February 05, 2002