I now trying to implement sync socket actions (I'll need to make DLL so async
model doesn't fit).
procedure TSockClient.Request;
begin
if State <> wsConnected then
begin
Connect;
while not (State in [wsConnected, wsClosed]) do
MessagePump;
if State <> wsConnected then
begin
//..
Exit;
end;
end;
...send request...
end;
If I try to connect to not opened addr-port, the error is transferred to
OnSessionConnected. But I'd like to have result code of the last operation in
the socket's field without adding an OnSessionConnected handler. LastError is
what I want but it's not changed on session connect/disconnect. If that hasn't
been done by intention, I guess that should be implemented.
--
Anton
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be