Menu

how to update getPeer without sending data

Help
Anonymous
2001-02-04
2001-02-05
  • Anonymous

    Anonymous - 2001-02-04

    (server-app)getpeer only updates when the program sends data (*tcp() << "..."). i want to find out, if the socket is connected, but when i call getpeer without having send data (when the client already disconnected), it shows me the client's address, and not 0.0.0.0 (which would be the right result)
    i hope you can help me

     
    • David Sugar

      David Sugar - 2001-02-05

      There is a "isConnected" method, but this is based on the setting of the state variable in the obect, and is not in itself an absolute proof of connection.  Let me think about this more...

       

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.