/*
Copyright (c) 1993 Xerox Corporation.  All rights reserved.
*/
/*
$Id$

$Date$
 */


#ifndef	←←PCR←IOSocketGlue←h
#define ←←PCR←IOSocketGlue←h 1

#include <config/PCR←StdTypes.h>
#include <io/PCR←IOSocket.h>


#if PCR←IOSocket←IMPL

#include <io/PCR←IOGbl.h>
#include <io/PCR←IOGblGlue.h>


/*
 * Create (socket) and CreatePair (socketpair) commands
 *   for IOGblGlue procs ...
 */

int PCR←IOSocketGlue←←createCmd;
#define PCR←IOSocketGlue←createCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←createCmd))

int PCR←IOSocketGlue←←createPairCmd;
#define PCR←IOSocketGlue←createPairCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←createPairCmd))

/*
 * GenericOp and GenericCloneOp commands
 *   for IOGblGlue procs ...
 */

int PCR←IOSocketGlue←←acceptGenericCloneOpCmd;
#define PCR←IOSocketGlue←acceptGenericCloneOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←acceptGenericCloneOpCmd))

int PCR←IOSocketGlue←←bindGenericOpCmd;
#define PCR←IOSocketGlue←bindGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←bindGenericOpCmd))

int PCR←IOSocketGlue←←connectGenericOpCmd;
#define PCR←IOSocketGlue←connectGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←connectGenericOpCmd))

int PCR←IOSocketGlue←←getPeerNameGenericOpCmd;
#define PCR←IOSocketGlue←getPeerNameGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←getPeerNameGenericOpCmd))

int PCR←IOSocketGlue←←getNameGenericOpCmd;
#define PCR←IOSocketGlue←getNameGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←getNameGenericOpCmd))

int PCR←IOSocketGlue←←getOptGenericOpCmd;
#define PCR←IOSocketGlue←getOptGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←getOptGenericOpCmd))

int PCR←IOSocketGlue←←listenGenericOpCmd;
#define PCR←IOSocketGlue←listenGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←listenGenericOpCmd))

int PCR←IOSocketGlue←←recvGenericOpCmd;
#define PCR←IOSocketGlue←recvGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←recvGenericOpCmd))

int PCR←IOSocketGlue←←recvFromGenericOpCmd;
#define PCR←IOSocketGlue←recvFromGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←recvFromGenericOpCmd))

int PCR←IOSocketGlue←←recvMsgGenericOpCmd;
#define PCR←IOSocketGlue←recvMsgGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←recvMsgGenericOpCmd))

int PCR←IOSocketGlue←←sendGenericOpCmd;
#define PCR←IOSocketGlue←sendGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←sendGenericOpCmd))

int PCR←IOSocketGlue←←sendToGenericOpCmd;
#define PCR←IOSocketGlue←sendToGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←sendToGenericOpCmd))

int PCR←IOSocketGlue←←sendMsgGenericOpCmd;
#define PCR←IOSocketGlue←sendMsgGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←sendMsgGenericOpCmd))

int PCR←IOSocketGlue←←setOptGenericOpCmd;
#define PCR←IOSocketGlue←setOptGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←setOptGenericOpCmd))

int PCR←IOSocketGlue←←shutdownGenericOpCmd;
#define PCR←IOSocketGlue←shutdownGenericOpCmd \
        ((PCR←Any)(&PCR←IOSocketGlue←←shutdownGenericOpCmd))


#elif defined(PCR←NO←HOSTDEP←ERR)
    /* ... */
#else
#   error sockets unimplemented on this host / os
#endif

#endif /* !←←PCR←IOSocketGlue←h */

/*
$Log$
*/