Re: [twsocket] Message Processing of FTP-Client in threads

2005-03-17 Thread Francois PIETTE
 Maybe be it workes, because there is a Application.Processmessages
somewhere in my code.

You should not call Application.Processmessages from a thread.

 However, I have solved my problem in the meanwhile by using
MsgWaitForMultipleObjects.

If you look into ICS source code, you'll see that it make use of
MsgWaitForMultipleObjects to implement sync functions.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be



- Original Message - 
From: Queck Rainer GH [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 17, 2005 4:03 PM
Subject: AW: [twsocket] Message Processing of FTP-Client in threads


 Hi Francois,

 
 ICS component would not work if you use WaitForMultipleObjects. If it
works, it is the sign that you
 created the component in the main thread context !
 
 Well the component is created in the threads context, and suprise, it does
work :-)

 sniplet from my code
 //=
 procedure TFtpCliSrvRq.Execute;
 begin
   //=== do the context startup
   ContextStartup;
   State:=sIdleDisconnected;
   if assigned(FDiagnose) then
   begin
 FDiagnose.ReportInfo(cVLInfo,'FtpCliSrv Started');
   end;
   Log(self,'FtpCliSrv: entering Execute');

   //===
   while not terminated do
 

 procedure TFtpCliSrvRq.ContextStartup;
 begin
   //=== TRY
   TRY
   .
   FFtpClient:=TFtpClient.Create(nil);
   .
 //=

 Maybe be it workes, because there is a Application.Processmessages
somewhere in my code.

 However, I have solved my problem in the meanwhile by using
MsgWaitForMultipleObjects.

 Thanks
 Rainer

 -- 
 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] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Wilfried Mestdagh
Hello Udvari,

TWSocketServer does not handle UDP, only TCP.

---
Rgds, Wilfried
http://www.mestdagh.biz

Thursday, March 17, 2005, 16:28, Udvari Andrs Lszl wrote:

 Hi List,

 I wrote a little client-server application, which measures UDP
 datagram transfer speed. The server is using TWSocketServer, and sends
 a 1500 byte length UDP datagram in every half seconds. The number of
 datagrams to be sent is a parameter, tipically some 100, below 1000.
 The client side receive these packets measures the speed
 (bytes/second) and the counts the missing or lost packets (every
 packet has an incremental unique id).

 But on the client side there is a strange behaviour: in about every
 minute no datagram is coming for some seconds, and after that all of
 them coming in one bunch, like if emptying some kind of buffer. After
 that everything returns normal for about another 1 minute. 

 Is it a normal behaviour, or am I doing something wrong? On the
 server side everything seems to be OK, according to log file every
 packet is sent with correct timing.

 Thanks for your help:
 Andras

 --
 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] HELP with NTLM authentication

2005-03-17 Thread Albert Wiersch

Thank you for checking. What compiler did you compile THttpCli with? Did you
do anything special to get it to work? It still doesn't work for me.

How did you get the headers log? Perhaps I could try to see what's going on
as well.

When I try it, I get a page back titled You are not authorized to view this
page. When I switch the server to accepting basic authentication, it works.

--
Albert Wiersch
AI Internet Solutions
[EMAIL PROTECTED]
http://www.htmlvalidator.com/



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Tibor Csonka
 Sent: Thursday, March 17, 2005 3:59 PM
 To: 'ICS support mailing'
 Subject: RE: [twsocket] HELP with NTLM authentication
 
 
 I could access your site with no problem. Here are the headers log:
 
 Step 1:
 GET / HTTP/1.0
 Connection: Keep-alive
 Host: val.htmlvalidator.com:81
 
 HTTP/1.1 401 Access Denied
 Server: Microsoft-IIS/5.1
 Date: Thu, 17 Mar 2005 21:57:30 GMT
 WWW-Authenticate: Negotiate
 WWW-Authenticate: NTLM
 Content-Length: 4431
 Content-Type: text/html 
 
 Step 2:
 GET / HTTP/1.0
 Connection: Keep-alive
 Host: val.htmlvalidator.com:81
 Authorization: NTLM TlRMTVNTUAABB4I=
 
 HTTP/1.1 401 Access Denied
 Server: Microsoft-IIS/5.1
 Date: Thu, 17 Mar 2005 21:57:32 GMT
 WWW-Authenticate: NTLM
 TlRMTVNTUAACBAAEADgFgoICHhgRPrzi0v8AACQAJAA8AA
 AABQEoCg9a
 ADIAAgAEAFoAMgABAAQAWgAyAAQABAB6ADIAAwAEAHoAMgAA
 Connection: keep-alive
 Content-Length: 4033
 Content-Type: text/html
 
 Step 3:
 GET / HTTP/1.0
 Connection: Keep-alive
 Host: val.htmlvalidator.com:81
 Authorization: NTLM
 TlRMTVNTUAADGAAYAE4YABgAZgBACAAIAEAGAA
 YASAAA
 BYIAAHQAZQBzAHQAYgBlAGUAD58YyBRwoVZFrYVWYeiTHJ1jHhvc58x3qR
 b7IFJ5glQT8jsl
 867NwImoBzUHq3kS
 
 HTTP/1.1 200 OK
 Server: Microsoft-IIS/5.1
 Connection: keep-alive
 Content-Location: http://val.htmlvalidator.com:81/index.htm
 Date: Thu, 17 Mar 2005 21:57:34 GMT
 Content-Type: text/html
 Accept-Ranges: bytes
 Last-Modified: Thu, 17 Mar 2005 20:09:46 GMT
 ETag: b21949442d2bc51:97b
 Content-Length: 404
 
 regards
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Albert Wiersch
 Sent: Thursday, March 17, 2005 11:13 PM
 To: 'ICS support mailing'
 Subject: [twsocket] HELP with NTLM authentication
 
 
 My users have reported problems with NTLM authentication. I 
 have also never
 seen it to work. I am using the latest release version of ICS. I have
 compiled it with BCB 6.
 
 Can someone see if they can access the below URL with 
 THttpCli? I have not
 had any luck. I get an unauthorized page. I've tested it with 
 IE and Firefox
 and it works.
 
 Please try:
 http://val.htmlvalidator.com:81/
 
 Username: test
 Password: testpw
 
 The page should say Success! The file came through..
 
 If it doesn't work for you either, then is this a bug with the NTLM
 authentication? If it does work, do you know why it wouldn't 
 be working for
 me?
 
 Thank you.
 
 --
 Albert Wiersch
 AI Internet Solutions
 [EMAIL PROTECTED]
 http://www.htmlvalidator.com/
 
 
 --
 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] router and IP

2005-03-17 Thread rogersmail
Would it be safe to say using the app i mentioned that if none of the
Adapter IP's are the same as the Web IP returned that the user must be using
a proxy or router..
If not how are people detecting whether they are using either a proxy or
router..
Should i ask them at setup or is it detectable?



- Original Message -
From: Dan [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 17, 2005 12:46 PM
Subject: Re: [twsocket] router and IP


 Why do you need your local IP address, why can't you bind to IP 0.0.0.0?

 Dan

 - Original Message -
 From: rogersmail [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 17, 2005 1:15 AM
 Subject: Re: [twsocket] router and IP


  Also the website server after login returns to the client on the local
pc
  the verified IP address, which obviously is wrong with the router and
  after
  the successful login is where i set the local pc server to start with
the
  ip
  return...i then get the 10049 error, should i find the ip that the
router
  is
  assigning...ie 192.x.x.x etc and use that for the server on the local pc
  or
  still use the correct 81.103.x.x cable assigned one..
 
 
  - Original Message -
  From: Steve Williams [EMAIL PROTECTED]
  To: ICS support mailing twsocket@elists.org
  Sent: Thursday, March 17, 2005 12:10 AM
  Subject: Re: [twsocket] router and IP
 
 
  You will need to configure the router to do port forwarding.  What this
  means is that you tell the router that any incoming connection on a
  specified port gets directed to a specific local IP address (your PC).
  So the PHP script will still try to connect to the router's IP address,
  but the connection will be forwarded by the router to your PC.
 
  Sly
 
  rogersmail wrote:
   I wrote a program that opens a server on the local pc(for p2p stuff)
   and
  talks back and forth to the website, logging on ok and the php script
  catches the correct IP address of the server started on my PC,
  
   however since adding a router to my PC for my kids to use the other
PC
  for the net i logon ok to the website outside but after logging on it
  returns the original IP of the cable modem and not the generated local
ip
  that the router assigns, thus i get a 10049 Bind error..
  
   any ideas or directions very welcome..
 
 
 
 
  This message and its attachments may contain legally privileged or
  confidential information. This message is intended for the use of
  the individual or entity to which it is addressed. If you are not the
  addressee indicated in this message, or the employee or
  agent responsible for delivering the message to the intended recipient,
  you may not copy or deliver this message or its attachments
  to anyone. Rather, you should permanently delete this message and its
  attachments and kindly notify the sender by reply e-mail. Any
  content of this message and its attachments, which does not relate to
the
  official business of the sending company must be taken not
  to have been sent or endorsed by the sending company or any of its
  related
  entities. No warranty is made that the e-mail or attachment(s)
  are free from computer virus or other defect.
 
 
 

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


-- 
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] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Udvari András László
Thanks, but it has the same  behaviour with 1100 byte long packets, which is 
well under the size of the MTU. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcello Vezzelli
Sent: Thursday, March 17, 2005 5:17 PM
To: ICS support mailing
Subject: Re: [twsocket] UDP datagramreceive periodically freezes for seconds

Udvari Andrs Lszl ha scritto:

 Hi List,
 
 I wrote a little client-server application, which measures UDP datagram 
 transfer speed. The server is using TWSocketServer, and sends a 1500 byte 
 length UDP datagram in every half seconds. The number of datagrams to be sent 
 is a parameter, tipically some 100, below 1000. The client side receive these 
 packets measures the speed (bytes/second) and the counts the missing or lost 
 packets (every packet has an incremental unique id).
 
 But on the client side there is a strange behaviour: in about every minute no 
 datagram is coming for some seconds, and after that all of them coming in one 
 bunch, like if emptying some kind of buffer. After that everything returns 
 normal for about another 1 minute. 
 
 Is it a normal behaviour, or am I doing something wrong? On the server side 
 everything seems to be OK, according to log file every packet is sent with 
 correct timing.

You should pay attention to the maximum MTU of your network, which is 
likely to be lower than 1500.
One explanation to your problem could be that some network device (could 
be windows network layer too) waits for UDP fragments then sends 
reconstructed packets in a short time.
Try to lower packet size to 1400, or exactly to your network MTU.

-- 
Marcello Vezzelli
CTO
Software Development Department
E-Works s.r.l.
tel. +39 059 2929081
fax +39 059 2925035
Direzionale 70 - Via Giardini 456/c
41100 Modena - Italy

-- 
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[2]: [twsocket] router and IP

2005-03-17 Thread Wilfried Mestdagh
Hello,

 detecting whether they are using either a proxy or router
 Should i ask them at setup or is it detectable?

There is a lot detectable but nothing is 100% safe. Check IPhelper on
overbyte.be which has lots on board.

---
Rgds, Wilfried
http://www.mestdagh.biz

Friday, March 18, 2005, 07:52, rogersmail wrote:

 Would it be safe to say using the app i mentioned that if none of the
 Adapter IP's are the same as the Web IP returned that the user must be using
 a proxy or router..
 If not how are people detecting whether they are using either a proxy or
 router..
 Should i ask them at setup or is it detectable?



 - Original Message -
 From: Dan [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 17, 2005 12:46 PM
 Subject: Re: [twsocket] router and IP


 Why do you need your local IP address, why can't you bind to IP 0.0.0.0?

 Dan

 - Original Message -
 From: rogersmail [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 17, 2005 1:15 AM
 Subject: Re: [twsocket] router and IP


  Also the website server after login returns to the client on the local
 pc
  the verified IP address, which obviously is wrong with the router and
  after
  the successful login is where i set the local pc server to start with
 the
  ip
  return...i then get the 10049 error, should i find the ip that the
 router
  is
  assigning...ie 192.x.x.x etc and use that for the server on the local pc
  or
  still use the correct 81.103.x.x cable assigned one..
 
 
  - Original Message -
  From: Steve Williams [EMAIL PROTECTED]
  To: ICS support mailing twsocket@elists.org
  Sent: Thursday, March 17, 2005 12:10 AM
  Subject: Re: [twsocket] router and IP
 
 
  You will need to configure the router to do port forwarding.  What this
  means is that you tell the router that any incoming connection on a
  specified port gets directed to a specific local IP address (your PC).
  So the PHP script will still try to connect to the router's IP address,
  but the connection will be forwarded by the router to your PC.
 
  Sly
 
  rogersmail wrote:
   I wrote a program that opens a server on the local pc(for p2p stuff)
   and
  talks back and forth to the website, logging on ok and the php script
  catches the correct IP address of the server started on my PC,
  
   however since adding a router to my PC for my kids to use the other
 PC
  for the net i logon ok to the website outside but after logging on it
  returns the original IP of the cable modem and not the generated local
 ip
  that the router assigns, thus i get a 10049 Bind error..
  
   any ideas or directions very welcome..
 
 
 
 
  This message and its attachments may contain legally privileged or
  confidential information. This message is intended for the use of
  the individual or entity to which it is addressed. If you are not the
  addressee indicated in this message, or the employee or
  agent responsible for delivering the message to the intended recipient,
  you may not copy or deliver this message or its attachments
  to anyone. Rather, you should permanently delete this message and its
  attachments and kindly notify the sender by reply e-mail. Any
  content of this message and its attachments, which does not relate to
 the
  official business of the sending company must be taken not
  to have been sent or endorsed by the sending company or any of its
  related
  entities. No warranty is made that the e-mail or attachment(s)
  are free from computer virus or other defect.
 
 
 

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




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