bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

None


From: Liviu
Subject: None
Date: Thu, 24 Apr 2003 17:12:08 +0200

Hello,

I'am trying to write a simple client that connects to a telnet server
using the tcpstream class.
My code goes like this:

tcpserver tcp;
try {
    tcp.open("127.0.0.1:23");
}
catch(Socket* socket)
{
    cerr << "An exception was thrown." << endl;
}

If the telnet server is running everything goes ok.
It the telnet server is NOT RUNNING (so the open should fail) the open
function doesn't throw any exception.

My question is: How do I know if my client connected or not to the
server ???


    


  

-- 
Best regards,
 Liviu                          mailto:address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]