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 );

  1 - Argument

 s
    A socket descriptor.

  2 - Description

    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).

  3 - Return Values

    0                  Indicates that s is not an open socket
                       descriptor.
    x                  The SDC number.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.