NAME

coreNetChanClose() -- close a network channel.


SYNOPSIS

include "appcore.h"

int coreNetChanClose( coreNetChanCloseSPEC_t s )


DESCRIPTION

The coreNetChanClose() function closes the netCORE channel. The handle must have been created via a prior call to coreNetChanAccept(), coreNetChanConnect(), or coreNetChanOpen(). For TCP channels, an optional Reset can be specified.


PARAMETERS

s	
channel close specification 

   typedef struct  _core_net_chan_close_spec_
   {
      coreHandle_t hChan;

         Handle of channel to close.

      int Reset;

         For connection oriented channels (TCP) controls whether the underlying
         TCP stream is shutdown or reset. Shutdown is the default, a reset is 
         performed if this is non-zero.
   }
   coreNetChanCloseSPEC_t;


RETURN VALUE

errno ValueCondition
ENOTSUPNot supported - netCORE is not running.
EINVALPointer to specification is NULL.
EINVALHandle is wrong type.
EINVALHandle is not found.

MULTI-THREAD SAFETY LEVEL

MT-safe.


SEE ALSO

Functions:
coreNetServerPortAdd() coreNetServerPortRemove() coreNetChanAccept() coreNetChanReject() coreNetChanConnect() coreNetChanOpen() coreNetChanClose() coreNetChanPayloadMsg() coreNetChanTxFlow() coreNetChanRxFlow() coreNetAddrInit()