Re: [twsocket] Does a call to TWSocket.Send have to be on the same thread as the socket?

2012-01-29 Thread François Piette
If I make a Send call to that socket, does it have to occur on the same thread as the worker thread? Or can I call it's Send method from another thread? I looked at the WSocket.pas code and I didn't see anything that looked like it wasn't thread-safe, Sending data pass thru the internal

Re: [twsocket] Does a call to TWSocket.Send have to be on thesame thread as the socket?

2012-01-29 Thread Arno Garrels
François Piette wrote: If I make a Send call to that socket, does it have to occur on the same thread as the worker thread? Or can I call it's Send method from another thread? I looked at the WSocket.pas code and I didn't see anything that looked like it wasn't thread-safe, Sending data

[twsocket] TSslHTTPCli: POST with XML data to get RESOURCE on REST

2012-01-29 Thread Iqbal Husain
Hi, I am working on an OAuth API. I achieved the following using TSslHTTPCli in combination with TSslContext: 1. Getting Token and Secret Token. 2. Getting Access Token and Access Secret Token. 3. Getting Account List. {REST resource HTTP Method GET} 4. Getting Account

Re: [twsocket] TSslHTTPCli: POST with XML data to get RESOURCE on REST

2012-01-29 Thread François Piette
HERE IS A LINK FOR API http://www.kgnsoft-in.com/oauth/api0001.gif SCREENSHOT FOR THE POST METHOD Please provide the link to the API you are trying to implement. Just that part is not enough. Have you seen this : http://tools.ietf.org/html/draft-ietf-oauth-v2-23 and this :

Re: [twsocket] TSslHTTPCli: POST with XML data to get RESOURCE on REST

2012-01-29 Thread RTT
On 29-01-2012 16:00, Iqbal Husain wrote: 3. Getting Account List. {REST resource HTTP Method GET} 4. Getting Account Balance. {REST resource HTTP Method GET} In all of my above example, I put the OAuth parameters in TSslHTTPCli.SendStream and it works fine. How's that

Re: [twsocket] TSslHTTPCli: POST with XML data to get RESOURCE on REST

2012-01-29 Thread RTT
On 29-01-2012 16:19, François Piette wrote: Please provide the link to the API you are trying to implement. Just that part is not enough. https://content.etrade.com/etrade/estation/pdf/API_Technical_Documentation.pdf -- To unsubscribe or change your settings for TWSocket mailing list please

[twsocket] Help needed with TWSocket descendant with background thread message loop

2012-01-29 Thread robertoschler
I have a TWSocket descendant called TWSocketClientDeluxe. It does its work on a background thread. I have confirmed that this is the case by setting breakpoints on various events and inspecting the Threads window to make sure it is not on the main thread. It creates its own client thread and

[twsocket] TWSocket and Skype, anyone done that?

2012-01-29 Thread robertoschler
If anybody has used TWSocket to communicate with Skype when sending/receiving Skype audio via a port, please share any tips or problems that you had when doing so. Thanks, Robert -- To unsubscribe or change your settings for TWSocket mailing list please goto