> 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
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
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
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;
>
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
> 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
>> 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.
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.
---
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()
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.
>
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
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
Ok, I understand that port 21 is an exception and the router replaces
automatically the private IP by the public IP. Its 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 Ive a server behind a router with IP
> 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
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
>
> 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
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
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
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
19 matches
Mail list logo