decc$get_sdc

Returns the Socket Device Channel (SDC) associated with a socket descriptor for direct use with the DEC TCP/IP Services for OpenVMS product.

Format

#include  <socket.h>

short int decc$get_sdc  (int s);

Argument

s
A socket descriptor.

Description

This routine returns the SDC associated with a socket. C socket descriptors are normally used either as file descriptors or with one of the routines that take an explicit socket descriptor as its argument. C sockets are implemented using DEC TCP/IP Services for OpenVMS Socket Device Channels. This routine returns the SDC used by a given socket descriptor so that you can use the DEC TCP/IP Services for OpenVMS's facilities directly by means of various I/O system services ($QIO).

Return Values
Indicates that s is not an open socket descriptor. 
The SDC number. 


Previous Page | Next Page | Table of Contents | Index