Re: [twsocket] A question about OnDataAvailable

2006-10-24 Thread Francois Piette
> 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 concat

[twsocket] Port not available in Passive Mode FTP

2006-10-24 Thread Arnold FLUTEAUX
Hi, I've seen that this subject had already discussed but I'm another question on tjis. I want to transfer in passive mode. 3 ports (1985-1986-1987) are open on my router and set on my server. So the connexion is OK and it's the 1985 port which is returned by the server after PASV command for t

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 con

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

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

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 (http://support.microsoft.

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

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

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

Re: [twsocket] FTP Connection in Passive mode

2006-10-24 Thread Arnold FLUTEAUX
Ok, I understand that port 21 is an exception and the router replaces automatically the private IP by the public IP. It’s not the case for others ports. OK. And for these others cases, we must use PASVIPAdress in which, we set public IP. So now, suppose that I’ve a server behind a router with IP

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

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

[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

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 reg