DCMD_IP_SHUTDOWN
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Set the method of shutting down a socket
Synopsis:
#include <sys/dcmd_ip.h>
#define DCMD_IP_SHUTDOWN __DIOT(_DCMD_IP, 0x05, uint32_t)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A descriptor for a socket. |
dcmd | DCMD_IP_SHUTDOWN |
dev_data_ptr | A pointer to a uint32_t |
n_bytes | sizeof(uint32_t) |
dev_info_ptr | NULL |
Description:
This command sets the method of shutting down a socket. Clients usually use shutdown() to generate this request.
Input:
The method you want to use; one of:
- SHUT_RD
- Don't allow further receives.
- SHUT_WR
- Don't allow further sends.
- SHUT_RDWR
- Don't allow further sends or receives.
Output:
None.
See also:
devctl() in the QNX OS C Library Reference
shutdown() in the QNX OS C Library Reference, S page
Page updated: