Re: [twsocket] HttpCli.Abort

2006-03-14 Thread Francois Piette
 Francois, what is the best way to handle this one? I can set a 'flag' within
 the LocationChange handler and use it to Abort the client at a later moment
 (or discard its content etc). I've also seen people talk about using
 PostMessage but I'm not sure how to do that. How would I create a message
 and use a handle for the processing object? (my own 'download-manager'
 object for instance).

To use PostMessage, you must :
1) Declare a unique constant which is the message number
  const WM_MY_MSG = WM_USER + 123;  // Select a unique number !
2) Declare a message handler in the form where you dropped the component
  procedure WMMyMsg(var msg: TMessage); message WM_MY_MSG;
3) Implement the procedure to do what you need to do:

  procedure TForm1.WMMyMsg(var msg: TMessage);
  begin
  // Whatever you need
  end;
4) Then you may PostMessage from anywhere
 PostMessage(Form1.Handle, WM_MY_MSG, myWParam, myLParam);

It is frequently conveniant to pass a component reference in one of the message 
parameters and
anything else you like in the other. You must cast it to LParam or WParam.
 PostMessage(Form1.Handle, WM_MY_MSG, 0, LParam(HttpCli1));
in the handler:
 HttpClient := THttpCli(msg.LParam);

Be aware to not destroy the component before the posted messages are handled ! 
If you need to
destroy the component, then you must keep track of resulting invalid 
references. For example
maintain a list of components, give an ID to each one. When you postmessage, 
you check if the
reference (LParam) is still in the list with same ID (WParam).

There are a lot of example of message posting in all ICS components.

--
Contribute to the SSL Effort. Visit
http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [Wiki] Still need some author

2006-03-14 Thread Fredrik Larsson
I registered myself and will try to help a little. What I noticed that it
might be needed to have seperate pages for the units. Since some units
contain functions that are quite useful and isn't available in a component.
I guess that there should be these block then: Overview, Components (links
to any components in that unit), Methods and then How to. What do you think?

Regards, Fredrik. 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] [Wiki] Still need some author

2006-03-14 Thread Fastream Technologies
With all the experience I have, I would like to contribute to the topic 
Installation of ICS for BCB6-2006. In order for me to succeed in this, I 
think there are a few issues left to be resolved.

Regards,

SZ

- Original Message - 
From: Fredrik Larsson [EMAIL PROTECTED]
To: 'ICS support mailing' twsocket@elists.org
Sent: Tuesday, March 14, 2006 10:41 AM
Subject: Re: [twsocket] [Wiki] Still need some author


I registered myself and will try to help a little. What I noticed that it
 might be needed to have seperate pages for the units. Since some units
 contain functions that are quite useful and isn't available in a 
 component.
 I guess that there should be these block then: Overview, Components (links
 to any components in that unit), Methods and then How to. What do you 
 think?

 Regards, Fredrik.


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] BDS2006 C++Personality = ERROR

2006-03-14 Thread Fastream Technologies
What is the delphi equivalent of the below code in C++?

in worker  code

#include OverbyteIcsTypes.h

...

in OverbyteIcsTypes.h,

#include Windows.h // should be inserted in the worker code so that it 
would recognize ::HWND

#ifdef BCB
#define HWND ::HWND
#else
..the current Delphi code here
#endif
...

I think this is the cure for the problem.

Regards,

SZ

- Original Message - 
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, March 14, 2006 9:01 AM
Subject: Re: [twsocket] BDS2006  C++Personality = ERROR


 Ok. So we had the BCB not see the definition of new HWND. How do we make 
 it
 work with, HWND where it expects Window.HWND? Is there a #define thing
 similar to C++? Even if this exists, since each delphi unit is a module, 
 we
 would need to re-add the unit windows to uses of each unit that uses
 HWND, right?

 Regards,

 SZ

 - Original Message - 
 From: Francois PIETTE [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Monday, March 13, 2006 10:09 PM
 Subject: Re: [twsocket] BDS2006  C++Personality = ERROR


 There is no notion of real module in C++. Namespaces are invented to
 prevent name clashes for this purpose. You can have HWND and
 Overbyteics:HWND at the same scope UNLESS you define,

 using namespace Overbyteics;

 which makes the :: = Overbyteics and which is the case with
 Overbyteics.
 It is like adding a path to Delphi/BCB. There cannot be same named
 components in the same project! What Francois should agree to do is to
 rename all of the HWND's in the ICS code with Overbyteics::HWND (or
 perhaps
 rename the namespace name to ObICS for the sake of compacting), IMO.

 He think this is C++ code. It isn't. It is Delphi code.
 Instead, try conditionally compile the offending types redefinition in
 OverbyteIcsTypes.pas so that BCB doesn't see them.

 --
 [EMAIL PROTECTED]
 http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Http server / http client

2006-03-14 Thread Jørgen Bonde
I have made an HTTP server application which on request, get the data from a
HTTPclient.

Sometimes if the data from the HTTP client is ‘ slow’ ( Getting the data
from a GPRS station) the server disconnect before all data 

Has been collected via the http client. Is there a way to increase the time
before the server disconnect ??

Thank’s Joergen

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Http server / http client

2006-03-14 Thread Fastream Technologies
Hello Jorgen,

I came accross the same problem with our reverse proxy 
(http://www.fastream.com/iqreverseproxy.htm). The solution is to pause() the 
THttpConnection and resume when you get the data. We make it for each 
packet.

Regards,

SZ

- Original Message - 
From: Jørgen Bonde [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, March 14, 2006 2:05 PM
Subject: [twsocket] Http server / http client


I have made an HTTP server application which on request, get the data from a
HTTPclient.

Sometimes if the data from the HTTP client is ' slow' ( Getting the data
from a GPRS station) the server disconnect before all data

Has been collected via the http client. Is there a way to increase the time
before the server disconnect ??

Thank's Joergen

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] TFtpServer time not listed

2006-03-14 Thread Arno Garrels
Hi,

Why is the time not listed if the file has been modified 
last year?

FtpSrv.pas, function FormatUnixDirEntry(F : TSearchRec) : String; 
..
if Year = ThisYear then
TimeStr := Format('%2.2d:%2.2d', [Hour, Min])
else
TimeStr := Format('%5d', [Year]);


---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread gates
Hello Arno,

This is the standard behavior of all FTP sites I know. For example:
ftp.borland.com, ftp.microsoft.com, ftp.intel.com. I am not sure if it is
because of an RFC or not.

Regards,

SZ

 Hi,

 Why is the time not listed if the file has been modified
 last year?

 FtpSrv.pas, function FormatUnixDirEntry(F : TSearchRec) : String;  ..
 if Year = ThisYear then
 TimeStr := Format('%2.2d:%2.2d', [Hour, Min])
 else
 TimeStr := Format('%5d', [Year]);


 ---
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html

 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Francois Piette
Because it is the Unix format for dir lists.
If you change that, clients have problems parsing the dir list.
It is also related to the value returned by the SYST command.

--
[EMAIL PROTECTED]
http://www.overbyte.be

- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, March 14, 2006 3:08 PM
Subject: [twsocket] TFtpServer time not listed


 Hi,
 
 Why is the time not listed if the file has been modified 
 last year?
 
 FtpSrv.pas, function FormatUnixDirEntry(F : TSearchRec) : String; 
 ..
 if Year = ThisYear then
 TimeStr := Format('%2.2d:%2.2d', [Hour, Min])
 else
 TimeStr := Format('%5d', [Year]);
 
 
 ---
 Arno Garrels [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Angus Robertson - Magenta Systems Ltd
  if Year = ThisYear then
  TimeStr := Format('%2.2d:%2.2d', [Hour, Min])
  else
  TimeStr := Format('%5d', [Year]);

This would be much better if the test was for more than 12 months ago, 
rather than this calendar year, otherwise each January file time stamps 
for the previous year become date only without a time element, which is 
a pain for applications that check date and time (but not looked at the 
full function code).  

My applications all use the MLSD directory stuff, so I've not looked 
closely at the Unix format. 

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Http server / http client

2006-03-14 Thread Jørgen Bonde
Thanks for Your answer. But I do not understand.

Is it the Httpserver You pause ?? - Is the  Pause and resume a properties of
the Thttpclient or Thttpserver ??


TelTecnic A/S
Att.: Joergen Bonde
Rudolfgaardsvej 19
DK-8260 Viby J
Tlf: +45 23 20 24 03
Mailto: [EMAIL PROTECTED] 


-Oprindelig meddelelse-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På
vegne af Fastream Technologies
Sendt: 14. marts 2006 14:09
Til: ICS support mailing
Emne: Re: [twsocket] Http server / http client

Hello Jorgen,

I came accross the same problem with our reverse proxy 
(http://www.fastream.com/iqreverseproxy.htm). The solution is to pause() the

THttpConnection and resume when you get the data. We make it for each 
packet.

Regards,

SZ

- Original Message - 
From: Jørgen Bonde [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, March 14, 2006 2:05 PM
Subject: [twsocket] Http server / http client


I have made an HTTP server application which on request, get the data from a
HTTPclient.

Sometimes if the data from the HTTP client is ' slow' ( Getting the data
from a GPRS station) the server disconnect before all data

Has been collected via the http client. Is there a way to increase the time
before the server disconnect ??

Thank's Joergen

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote:
 My applications all use the MLSD directory stuff, 

Are those commands supported by most servers today?

Arno  
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Angus Robertson - Magenta Systems Ltd
  My applications all use the MLSD directory stuff, 
 Are those commands supported by most servers today?

All except for Microsoft I think, while each new HTTP server in IIS is a 
major step forward, the IIS FTP server is still pretty pathetic in terms 
of modern commands, no SSL and only integrated security.  

But my only applications with the ICS FTP server are for use with my own 
clients.  A public FTP server needs a lot of security and stuff to be 
safe, I'm not planning on offering one.  

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Fastream Technologies
- Original Message - 
From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Tuesday, March 14, 2006 7:29 PM
Subject: Re: [twsocket] TFtpServer time not listed


  My applications all use the MLSD directory stuff,
 Are those commands supported by most servers today?

 All except for Microsoft I think, while each new HTTP server in IIS is a
 major step forward, the IIS FTP server is still pretty pathetic in terms
 of modern commands, no SSL and only integrated security.

 But my only applications with the ICS FTP server are for use with my own
 clients.  A public FTP server needs a lot of security and stuff to be
 safe, I'm not planning on offering one.

We have been supporting MLSD/MLST before ICS began doing so. Angus is right 
about security as NETFile server FTP part was on bugtraq a few times. Thank 
God it is no longer vulnerable--at least to those in Bugtraq and 
Vulnerability Watch.

Regards,

SZ 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Arno Garrels
Fastream Technologies wrote:
 - Original Message -
 From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Tuesday, March 14, 2006 7:29 PM
 Subject: Re: [twsocket] TFtpServer time not listed
 
 
 My applications all use the MLSD directory stuff,
 Are those commands supported by most servers today?
 
 All except for Microsoft I think, while each new HTTP server in IIS is a
 major step forward, the IIS FTP server is still pretty pathetic in terms
 of modern commands, no SSL and only integrated security.
 
 But my only applications with the ICS FTP server are for use with my own
 clients.  A public FTP server needs a lot of security and stuff to be
 safe, I'm not planning on offering one.
 
 We have been supporting MLSD/MLST before ICS began doing so. Angus is
 right about security as NETFile server FTP part was on bugtraq a few
 times. Thank God it is no longer vulnerable--at least to those in Bugtraq
 and Vulnerability Watch.

I don't understand, why should MLSD/MLST be more unsecure than LIST?

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Fastream Technologies
- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, March 14, 2006 8:31 PM
Subject: Re: [twsocket] TFtpServer time not listed


 Fastream Technologies wrote:
 - Original Message -
 From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Tuesday, March 14, 2006 7:29 PM
 Subject: Re: [twsocket] TFtpServer time not listed


 My applications all use the MLSD directory stuff,
 Are those commands supported by most servers today?

 All except for Microsoft I think, while each new HTTP server in IIS is a
 major step forward, the IIS FTP server is still pretty pathetic in terms
 of modern commands, no SSL and only integrated security.

 But my only applications with the ICS FTP server are for use with my own
 clients.  A public FTP server needs a lot of security and stuff to be
 safe, I'm not planning on offering one.

 We have been supporting MLSD/MLST before ICS began doing so. Angus is
 right about security as NETFile server FTP part was on bugtraq a few
 times. Thank God it is no longer vulnerable--at least to those in Bugtraq
 and Vulnerability Watch.

 I don't understand, why should MLSD/MLST be more unsecure than LIST?

No, I mean FTP (as a protocol) is more unsecure than HTTP. Our product is 
both a web server and a FTP server combined 
(http://www.fastream.com/netfileserver.htm) and bugtraq hunters hunted the 
FTP side more.

Regards,

SZ 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Arno Garrels
Fastream Technologies wrote:
 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Tuesday, March 14, 2006 8:31 PM
 Subject: Re: [twsocket] TFtpServer time not listed
 
 
 Fastream Technologies wrote:
 - Original Message -
 From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Tuesday, March 14, 2006 7:29 PM
 Subject: Re: [twsocket] TFtpServer time not listed
 
 
 My applications all use the MLSD directory stuff,
 Are those commands supported by most servers today?
 
 All except for Microsoft I think, while each new HTTP server in IIS is
 a major step forward, the IIS FTP server is still pretty pathetic in
 terms of modern commands, no SSL and only integrated security.
 
 But my only applications with the ICS FTP server are for use with my
 own clients.  A public FTP server needs a lot of security and stuff to
 be safe, I'm not planning on offering one.
 
 We have been supporting MLSD/MLST before ICS began doing so. Angus is
 right about security as NETFile server FTP part was on bugtraq a few
 times. Thank God it is no longer vulnerable--at least to those in
 Bugtraq and Vulnerability Watch.
 
 I don't understand, why should MLSD/MLST be more unsecure than LIST?
 
 No, I mean FTP (as a protocol) is more unsecure than HTTP. Our product is
 both a web server and a FTP server combined
 (http://www.fastream.com/netfileserver.htm) and bugtraq hunters hunted the
 FTP side more.

That may be, but has nothing to do with the OP. 
I count this in as yet another promotion attempt. 

Arno Garrels 

 
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TFtpServer time not listed

2006-03-14 Thread Fastream Technologies
- Original Message - 
From: Arno Garrels [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, March 14, 2006 9:30 PM
Subject: Re: [twsocket] TFtpServer time not listed


 Fastream Technologies wrote:
 - Original Message -
 From: Arno Garrels [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Tuesday, March 14, 2006 8:31 PM
 Subject: Re: [twsocket] TFtpServer time not listed


 Fastream Technologies wrote:
 - Original Message -
 From: Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED]
 To: twsocket@elists.org
 Sent: Tuesday, March 14, 2006 7:29 PM
 Subject: Re: [twsocket] TFtpServer time not listed


 My applications all use the MLSD directory stuff,
 Are those commands supported by most servers today?

 All except for Microsoft I think, while each new HTTP server in IIS is
 a major step forward, the IIS FTP server is still pretty pathetic in
 terms of modern commands, no SSL and only integrated security.

 But my only applications with the ICS FTP server are for use with my
 own clients.  A public FTP server needs a lot of security and stuff to
 be safe, I'm not planning on offering one.

 We have been supporting MLSD/MLST before ICS began doing so. Angus is
 right about security as NETFile server FTP part was on bugtraq a few
 times. Thank God it is no longer vulnerable--at least to those in
 Bugtraq and Vulnerability Watch.

 I don't understand, why should MLSD/MLST be more unsecure than LIST?

 No, I mean FTP (as a protocol) is more unsecure than HTTP. Our product is
 both a web server and a FTP server combined
 (http://www.fastream.com/netfileserver.htm) and bugtraq hunters hunted 
 the
 FTP side more.

 That may be, but has nothing to do with the OP.
 I count this in as yet another promotion attempt.

Sorry if I offended. I just wanted to give a reference so people can google 
and see the vulnerabilities we had with our ICS software in the past so that 
they do not fall into the same trap.

Best Regards,

SubZ 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] plz help me it is very urgent

2006-03-14 Thread Ramkumar Jothi
Hai,
   
  I am a thesis student working on building a softphone that supports sip or 
SIP/h.323 using Delphi 7. I came across RNID SIP stack for Delphi windows, can 
you plz tell me whether there are softphone implementations made on this 
already, If so where can I get a source code for the sip softphone developed 
using this sip stack. I am even ready to pay for it.
   
  Plz help me I will be really thankful to you.
   
  Advanced many Thanks,
   
  Robin


-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be