Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Arno Garrels
Francois PIETTE wrote: Searching MSDN for SIO_GET_INTERFACE_LIST report a few hits. But WSAIoctl doesn't lit it ! Thanks I'll investigate more in this, my idea was to incude an utility function something like IsSameSubnet(IP: TInAddr): Boolean in WSocket.pas provided that it must not use

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Francois Piette
, freeware) http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, October 26, 2006 3:58 PM Subject: Re: [twsocket] FTP server, problem with property PasvIpAddr Francois PIETTE wrote: Searching MSDN

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Arno Garrels
Francois Piette wrote: Maybe creating a new OverbyteIcsWinsock2.pas file with all stuff specific to winsock2 would be a good idea ? Yeah, something for the ToDo list. Currently I just want a simple and fast check whether a peer address is in the subnet in a FTP server I'm currently working on.

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Fastream Technologies
I believe for common tasks that would require many developers to do the same thing, there should be common code in the component set. Thinking otherwise is not productive. Regards, SubZero On Thu, 26 Oct 2006 16:33 +0100 (BST), Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] wrote:

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: Currently I just want a simple and fast check whether a peer address is in the subnet in a FTP server I'm currently working on. The simple solution is to create an event with a true/false response, and let the application do the hard work. The

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Angus Robertson - Magenta Systems Ltd
OK, but why loading additional libraries when the same can be achieved by using winsock2? WSAIoctl/SIO_GET_INTERFACE_LIST should work even in W95 It's new development, you wanted a simple solution. Winsock2 is an additional library, just a different additional library to IpHlpApi.

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Angus Robertson - Magenta Systems Ltd
I believe for common tasks that would require many developers to do the same thing, there should be common code in the component set. Thinking otherwise is not productive. Rubbish. This passive IP NAT stuff is hardly common, otherwise this mailing list would be full of requests for it.

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-26 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: OK, but why loading additional libraries when the same can be achieved by using winsock2? WSAIoctl/SIO_GET_INTERFACE_LIST should work even in W95 Winsock2 is an additional library, just a different additional library to IpHlpApi. Not realy since

[twsocket] FTP server, problem with property PasvIpAddr

2006-10-25 Thread Arno Garrels
Arno Garrels wrote: 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?). I need such an option as well. So I just changed the code as mentioned above. New option ftpsNoPasvIpAddrInLan and a

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-25 Thread Arno Garrels
I need to check for the same subnet instead of private IPs, sometimes I'm too slow :) Arno Garrels wrote: Arno Garrels wrote: 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?). I need

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-25 Thread Arno Garrels
support mailing twsocket@elists.org Sent: Wednesday, October 25, 2006 2:10 PM Subject: Re: [twsocket] FTP server, problem with property PasvIpAddr I need to check for the same subnet instead of private IPs, sometimes I'm too slow :) Arno Garrels wrote: Arno Garrels wrote: Or modify the FTP

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-25 Thread Francois Piette
Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, October 25, 2006 2:10 PM Subject: Re: [twsocket] FTP server, problem with property PasvIpAddr I need to check for the same subnet instead of private IPs, sometimes I'm too slow :) Arno Garrels

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-25 Thread Arno Garrels
mailing twsocket@elists.org Sent: Wednesday, October 25, 2006 4:27 PM Subject: Re: [twsocket] FTP server, problem with property PasvIpAddr Francois Piette wrote: But I wonder if it was not better to trigger just an event before PasvIpAddr will be used that would allow the component user to do

Re: [twsocket] FTP server, problem with property PasvIpAddr

2006-10-25 Thread Francois PIETTE
Searching MSDN for SIO_GET_INTERFACE_LIST report a few hits. But WSAIoctl doesn't lit it ! Thanks I'll investigate more in this, my idea was to incude an utility function something like IsSameSubnet(IP: TInAddr): Boolean in WSocket.pas provided that it must not use IpHlpApi, supported by