VMS Help
TCPIP Services, Programming Interfaces, Sockets API, decc$get_sdc()
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Returns the socket device channel (SDC) associated with a socket
descriptor.
Format
#include <socket.h>
short int decc$get_sdc ( int s );
s
A socket descriptor.
This function returns the SDC associated with a socket. Normally,
socket descriptors are used either as file descriptors or with
one of the functions that takes an explicit socket descriptor as
its argument. Sockets are implemented using TCP/IP socket device
channels. This function returns the SDC used by a given socket
descriptor so you can use the TCP/IP facilities directly by means
of various I/O system services ($QIO).
0 Indicates that s is not an open socket
descriptor.
x The SDC number.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.