Home Help Center

What is the meaning of "remote address = -1" ?

Gu ShuwangGu Shuwang Member Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0
Hi.

For know the remote address, we call the function Connection::toString(). But sometimes, it return "local address = 192.168.1.36:33402 remote address = -1".

What is the meaning of "remote address = -1" ?:confused:

:)

Thanks,
Gu.

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Can you specify on which Ice version, language mapping and operating system you're seeing this?

    Cheers,
    Benoit.
  • Gu ShuwangGu Shuwang Member Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0
    benoit wrote: »
    Hi,

    Can you specify on which Ice version, language mapping and operating system you're seeing this?

    Cheers,
    Benoit.

    We use Ice 3.5.1 in c++.
    OS: Microsoft Windows Server 2008 Standard 64bit 6.0.6001 Service Pack 1 Build 6001

    Is "-1" a normal return value? And is it different on different operating system? :confused:

    GU.
  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    Can you copy/paste the exact value returned by Ice::Connection::toString()? A value of -1 for the port of the remote address most likely indicates that the connection isn't connected. Also, can you specify whether or not this is a regular Win32 application or is this a Windows Store app?

    Cheers,
    Benoit.
Sign In or Register to comment.