[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tcpstream::open thrown exceptions
From: |
Liviu |
Subject: |
tcpstream::open thrown exceptions |
Date: |
Thu, 24 Apr 2003 17:36:32 +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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- tcpstream::open thrown exceptions,
Liviu <=