VMS Help
TCPIP Services, Programming Interfaces, Sockets API, close()

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    Closes a connection and deletes a socket descriptor.
    The $QIO equivalent is the $DASSGN system service.
    Format
      #include  <unixio.h>
      int close  ( s );

  1 - Argument

 s
    A socket descriptor.

  2 - Description

    This function deletes a descriptor from the per-process object
    (Compaq C structure) reference table. Associated TCP connections
    close first.
    If a call to the connect() function fails for a connection mode
    socket, applications should use close() to deallocate the socket
    and descriptor.
    Related Functions
    See also accept(), socket(),  and write().

  3 - Return Values

    0                  Successful completion.
    -1                 Error; errno is set to indicate the error.

  4 - Errors

    EBADF              The socket descriptor is invalid.
    EINTR              The close() function was interrupted by a
                       signal that was caught.
  Close     HLB-list     TLB-list     Help  

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