Re: [twsocket] Send and Shutdown oddity

2011-02-15 Thread Arno Garrels
Markus Humm wrote:
> Hello,
> 
> what does the event OnSentData _exactly_ signal?

There does not exist such an event.

There are two similar named events, OnDataSent and OnSendData.

OnDataSent triggers after ALL data buffered in TWSocket's
internal send buffer has been actually sent by winsock API send().

And there is OnSendData that triggers whenever data has been
sent by winsock API send().

Whenever you call one of TWSocket's send-methods data is copied
to TWSocket's send buffer first and the component the sends it
asynchronously in the background.

> Does it really signal that WinSock has completed sending the data?

No, see above. Winsock does not provide such a callback or event.

-- 
Arno Garrels
--
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


Re: [twsocket] Send and Shutdown oddity

2011-02-15 Thread Francois PIETTE

what does the event OnSentData _exactly_ signal?


Well, there is no such event. You have OnDataSent and OnSendData which are 
close.
OnDataSent: This is when Winsock has accepted all data from TWSocket, that 
is when TWSocket buffer is emptyed.

OnSendData: This is when TWSocket is able to write data to winsock.


Does it really signal that WinSock has completed sending the data?


There is no such event available. And even if it is, then this doesn't mean 
anything since the remote side still has to acknowledge it. There could be 
an event for that, but as far as I know TCP stack doesn't propagate this to 
the application.



I'd like to encourage those who already have a wiki account but never
wrote anything in it to start helping to document ICS!


+1

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
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


Re: [twsocket] OT: 3Proxy malware?

2011-02-15 Thread Anton S.
>Is there some switch to turn that on?
>I just tried briefly yesterday and it returned HTTP/1.0
>responses to my HTTP/1.1 request.

Don't know, it should simply work! Are you sure to use latest version?
I now tried to test with Opera with option "Use HTTP 1.1 for proxies" enabled 
but it used to send GET requests with "HTTP 1.0". I don't know how to force 1.1 
mode.

BTW, regarding "malwareness": developer refers to this link to read 
http://vil.nai.com/vil/content/v_100768.htm

-- 
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


Re: [twsocket] Send and Shutdown oddity

2011-02-15 Thread Markus Humm
Hello,

either I have implemented the suggestion of confirming the reception of
my shutdowncommand and only then closing the connection completely false
or it's something quite curious and different:

I found out now that the problem only happens under these conditions:
- in my application's setup wizard there's the possibility to search
  for our Bluetooth devices and automatically pair and set them up.
- when I close the wizard mentioned shutdowncommand has to be sent so
  that some part of my app. quits and is restarted afterwards.
- only in the case when my app is running on a Laptop with Toshiba
  Bluetooth stack equipped and the device to be added to my application
  is not yet paired the shutdown command never arrives, no matter what
  I do. If the device has been paired previously everythign works like
  a charm!

I've now contacted the developer of our Bluetooth library (named WCL)
and hope he might shed some more light on this matter.

I'm clueless now.

Greetings

markus
--
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


[twsocket] Asychronous opperation of Over Byte components - Automated processes

2011-02-15 Thread Brennan, Stephen
How should one go about coding a user initiated automated/interactive
processes which use TTnCnx and TTFtpClient?

 

The user must be able to cancel the process and respond to prompts as
required by the process.

 

If one uses On... events to trigger the next step the code become part
of the GUI and is basically a state machine.   Do I have any other
options with these components?   Can the process be encapsulated in a
thread instead where the thread can wait for each task to be completed
or abort etc. before it moves on?

 

Regards

Stephen

--
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


Re: [twsocket] Asychronous opperation of Over Byte components - Automated processes

2011-02-15 Thread Brennan, Stephen
I will add that the wait process could simply be a periodic check (e.g
FtpClient.State=ftpReady) amongst other code in the thread.

 

Regards

Stephen

 

From: Stephen 
Sent: Wednesday, 16 February 2011 8:46 AM
To: 'twsocket@elists.org'
Subject: Asychronous opperation of Over Byte components - Automated
processes

 

How should one go about coding a user initiated automated/interactive
processes which use TTnCnx and TTFtpClient?

 

The user must be able to cancel the process and respond to prompts as
required by the process.

 

If one uses On... events to trigger the next step the code become part
of the GUI and is basically a state machine.   Do I have any other
options with these components?   Can the process be encapsulated in a
thread instead where the thread can wait for each task to be completed
or abort etc. before it moves on?

 

Regards

Stephen

--
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