bug-commoncpp
[Top][All Lists]
Advanced

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

Patch for connecting SocketPort constructor


From: Prochnow, Christian
Subject: Patch for connecting SocketPort constructor
Date: Wed, 6 Nov 2002 21:03:20 +0100
User-agent: KMail/1.4.3

Hi,

i've patched the SocketPort class a bit to provide a non-blocking constructor 
for outbound tcp connections.
To detect when the connection is established, overload SocketPort::output().
SocketPort::output()  get's called by the SocketService when the connection is 
ready, SocketPort::disconnect() when the connect failed. 
at the moment you should set the socket state to "CONNECTED" when 
SocketPort::output() get's called for the first time, which i think should 
eventually be done in SocketService.

Regards, 
Christian Prochnow

Attachment: port.cpp.patch
Description: Text Data

Attachment: socket.h.patch
Description: Text Data


reply via email to

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