[Contents] [Index] [Help] [Browse <] [Browse >]


amarquee.library/QGetLocalIP           amarquee.library/QGetLocalIP

   NAME
    QGetLocalIP - Returns the local IP-address of the currently connected session.

   SYNOPSIS
    #include 

    char *QGetLocalIP(struct QSession * session)

   FUNCTION
    Returns the ip address of the local interface that is connected to the session.

   INPUTS
    session - Pointer to the QSession struct you want information for.

   RESULTS
    The domain name.

   NOTE
    This function requires amarquee.library v53+. You are not allowed to call this function
    before the session is connected to the remote host.

   EXAMPLE
    struct QSession * s;

    if (s = QNewSession("example.server.com", 2957, "MyProg"))
    {
      char *ipaddress;

      /* ... */

      hostname = QGetLocalIP(s);
      printf("Currently the session is connected with the local IP %sn",ipaddress); /* Would return the local ip */

      /* ... */

      QFreeSession(s);
    }

   SEE ALSO


Converted on 24 Mar 2002 with RexxDoesAmigaGuide2HTML 2.1e(private) by Michael Ranner.