Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Fastream Technologies
Receive() and ReceiveStr() that you would normally be calling in OnDataAvailable returns the number of bytes. Best Regards, SZ On 10/24/06, Jack [EMAIL PROTECTED] wrote: Hi all, Is there a way to know how many bytes of data is available in the OnDataAvailable handler? -- Best regards,

[twsocket] FTP Connection in Passive mode

2006-10-24 Thread Arnold FLUTEAUX
Yes I understand that we can solve this with PasvIPAddr but I don't understand why we get public IP with port 21 and not with another port. It's curious and this is also the case with IIS FTP Server. Why must we set PasvIPAddr only when we want to have transfert on another port than 21 ? Thanks

[twsocket] CGI for THTTPServer?

2006-10-24 Thread Robert J. Rademacher
Hello all, I'm wondering if there is a simple web page with form, using basic CGI that will generate the POST reply back to THTTPServer Post event? For example, the value is entered in text box, and hit Button, and get the reply back from THTTPServer through Post event. The CGI script can be

Re: [twsocket] FTP Connection in Passive mode

2006-10-24 Thread Time Bandit
Why must we set PasvIPAddr only when we want to have transfert on another port than 21 ? You never have transfert on port 21, this is the control port. see http://slacksite.com/other/ftp.html for an explanation hth -- To unsubscribe or change your settings for TWSocket mailing list please

Re: [twsocket] FTP Connection in Passive mode

2006-10-24 Thread Arno Garrels
Arnold FLUTEAUX wrote: Yes I understand that we can solve this with PasvIPAddr but I don't understand why we get public IP with port 21 and not with another port. It's curious and this is also the case with IIS FTP Server. Why must we set PasvIPAddr only when we want to have transfert on

Re: [twsocket] CGI for THTTPServer?

2006-10-24 Thread Francois Piette
I'm wondering if there is a simple web page with form, using basic CGI that will generate the POST reply back to THTTPServer Post event? For example, the value is entered in text box, and hit Button, and get the reply back from THTTPServer through Post event. The CGI script can be written

Re: [twsocket] FTP Connection in Passive mode

2006-10-24 Thread Arno Garrels
Either you buy a router that is smart enough to handle this situation or do not use Pasv mode within the LAN. Or modify the FTP server component in a way that PasvIpAddr can be set privately for a particular client depending on it's source IP (just an idea?). --- Arno Garrels [TeamICS]

Re: [twsocket] CGI for THTTPServer?

2006-10-24 Thread Fastream Technologies
The code in Usermade page is a derivation/modification of DXCGI from BPDX which is a commercial component. Anyway, it is full of bugs. If you are interested in commercial quality code, email us privately and we can arrange something. Best Regards, SZ On 10/24/06, Francois Piette [EMAIL

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Jack
I know I know :) I was trying to ask if I can get that info without calling Receive() and ReceiveStr() :) -- Best regards, Jack Tuesday, October 24, 2006, 12:37:37 AM, you wrote: Receive() and ReceiveStr() that you would normally be calling in OnDataAvailable returns the number of bytes.

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Fastream Technologies
Sorry. That is something I do not know :). On 10/24/06, Jack [EMAIL PROTECTED] wrote: I know I know :) I was trying to ask if I can get that info without calling Receive() and ReceiveStr() :) -- Best regards, Jack Tuesday, October 24, 2006, 12:37:37 AM, you wrote: Receive() and

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Arno Garrels
Jack wrote: I know I know :) I was trying to ask if I can get that info without calling Receive() and ReceiveStr() :) var Count : Integer; WSocket_ioctlsocket(WSocket1.HSocket, FIONREAD, Count); Note that calling the function will trigger OnDataAvailable if there is data available. ---

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Francois PIETTE
I know I know :) I was trying to ask if I can get that info without calling Receive() and ReceiveStr() :) var Count : Integer; WSocket_ioctlsocket(WSocket1.HSocket, FIONREAD, Count); There is an article on MSDN which says this function is not reliable

Re: [twsocket] Bug report for TFTPServer

2006-10-24 Thread Francois PIETTE
I think I got it, please try: procedure TIcsBufferHandler.DeleteAllData; var Buf : TIcsBuffer; begin Buf := FInUseList.RemoveFromListHead; while Assigned(Buf) do begin add =Buf.WrCount := 0; add =Buf.RdCount := 0; FFreeList.AddToListHead(Buf);

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Arno Garrels
Francois PIETTE wrote: I know I know :) I was trying to ask if I can get that info without calling Receive() and ReceiveStr() :) var Count : Integer; WSocket_ioctlsocket(WSocket1.HSocket, FIONREAD, Count); There is an article on MSDN which says this function is not reliable

Re: [twsocket] Bug report for TFTPServer

2006-10-24 Thread Arno Garrels
Francois PIETTE wrote: I think I got it, please try: procedure TIcsBufferHandler.DeleteAllData; var Buf : TIcsBuffer; begin Buf := FInUseList.RemoveFromListHead; while Assigned(Buf) do begin add =Buf.WrCount := 0; add =Buf.RdCount := 0;

Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Jack
Hello Arno, I expect to get a data record of N byte length. I'd like to wait until the whole record has been received then I can call Receive() to read it back. Otherwise, if a OnDataAvailable() is triggered before the whole record is received, I will have to temporarily store it somewhere and