VMS Help  —  TCPIP Services, Programming Interfaces, Socket API Functions, setnetent()
    Opens the networks database file.
    Format
      #include  <netdb.h>
      void setnetent  (int stay_open);

1  –  Argument

 stay_open
    Specifies a value used to indicate when to close the networks
    database file (TCPIP$SYSTEM:NETWORKS.DAT):
    o  A value of 0 closes the networks database file after each call
       to the getnetent() function.
    o  A nonzero value keeps the networks database file open after
       each call.

2  –  Description

    This function opens the networks database file and resets the
    file marker to the beginning of the file.
    Passing a nonzero stay_open argument keeps the connection open
    until you call the endnetent() or exit()  function.
    Related Functions
    See also endnetent(), getnetent(),  and exit().
Close Help