| << Prev | appCORE Programming Guide | Next >> |
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 Value | Condition |
| ENOTSUP | Not supported - netCORE is not running. |
| EINVAL | Pointer to specification is NULL. |
| EINVAL | Handle is wrong type. |
| EINVAL | Handle is not found. |
MULTI-THREAD SAFETY LEVEL
MT-safe.
SEE ALSO
| << Prev | appCORE Programming Guide | Next >> |