Menu

TCPSocket::isPending compile errors (v 1.2.5)

Help
Anonymous
2000-11-21
2000-11-22
  • Anonymous

    Anonymous - 2000-11-21

    I have a project that has an object that inherits from TCPSocket.  All of my calls to TCPSocket::isPending fail to compile.  The definition of isPending in the TCPSocket header looks like:<br><blockquote>inline bool isPending(timeout_t timeout = TIMEOUT_INF)</blockquote><br>When I try to compile a call with only the timeout argument I get the following error:<br><blockquote>no matching function for call to 'TCPSocket::isPending(timeout_t)'<br>candidates are: cc_Socket::isPending(sockpend_t, timeout_t)</blockquote><br>So I add in the sockpend_t argument and I get an error message that looks like this:<br><blockquote>bool cc_Socket::isPending(enum sockpend_t, timeout_t) is from private base class</blockquote><br>I think this is a bug.  I also noticed that the tcpthread demo in the demo directory fails to compile with the same errors.<br><blockquote>-><a href="mailto:huseby@shockfusion.com">Dave</a></blockquote>

     
    • Anonymous

      Anonymous - 2000-11-21

      Damn, I just noticed why my message is all messed up...sorry.  Here's the post in the correct format:

      I have a project that has an object that inherits from TCPSocket.  All of my calls to TCPSocket::isPending fail to compile.  The definition of isPending in the TCPSocket header looks like:

      inline bool isPending(timeout_t timeout = TIMEOUT_INF)

      When I try to compile a call with only the timeout argument I get the following error:

      no matching function for call to 'TCPSocket::isPending(timeout_t)'
      candidates are: cc_Socket::isPending(sockpent_t, timeout_t)

      So I add in the sockpend_t argument and I get an error message that looks like this:

      bool cc_Socket::isPending(enum sockpend_t, timeout_t) is from private base class

      I think this is a bug.  I also noticed that the tcpthread demo in the demo directory fails to compile with the same errors.

      -> Dave
      email responses to huseby@shockfusion.com

       
      • Alwyn Schoeman

        Alwyn Schoeman - 2000-11-22

        I'm having the same problems under Solaris 7.

        After searching through the libcxx symbols I failed to find one
        for TCPSocket.isPending....

        Can this be due to its inline declaration?

        If so, are there any compiler switches or something else that would make the problem go away?

        Thank you
        Alwyn Schoeman

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.