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
, 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
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.
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:
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
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.
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.
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
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
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
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
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
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
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
14 matches
Mail list logo