Re: [twsocket] Delphi2007,UDP, 2x packets

2007-09-12 Thread brian
Yeah, I've worked a lot with TCP and it was really no problem requesting a 
next packet after each, it was very fast.
UDP offers some other valuable features though.

How do you manage missed/double/wrong ordered packets? I thought of making a 
buffer to store a certain amount of packets.. say... maybe 100, and have a 
thread analyze the buffer and request any missing packets until all are 
complete, then process the data. However requests for missing packets might 
also be lost.. so shrug, what a pita to work with UDP :p 

-- 
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] Delphi2007,UDP, 2x packets

2007-09-12 Thread Tobias Rapp
 How do you manage missed/double/wrong ordered packets? 

Each packet got some sequence ID and alive packets were sent from time
to time. Also there was no special acknowledge packet - each received
packet contained the last successful received ID of the sender. If one
side detects that an incoming packet's ID is  LastID+1 it sends out an
request for the missing packets.

Wrong ordered packets were no big problem in my scenario because the
client is supposed to be within the same subnet. Double received packets
are just thrown away. Actually in some situations all packets are sent
out twice just to be sure.

/Tobias


-- 
NOA Audio Solutions Vertriebsges. m.b.H.   Tel: +43-1-5452700
Johannagasse 42/4  Fax: +43-1-545270014
A - 1050 Wien  Www: http://www.noa-audio.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


[twsocket] How can I use ISA proxy?

2007-09-12 Thread Bruce Zhao
I use the HttpCli to get web page, but my intranet use ths ISA proxy,
it use the NTLM authentication, What shall I do?

Thank you!

Bruce Zhao
2007.09.12
-- 
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] How can I use ISA proxy?

2007-09-12 Thread Francois Piette
 I use the HttpCli to get web page, but my intranet use ths ISA proxy,
 it use the NTLM authentication, What shall I do?

Simply enable NTML authentication at the HttpCli component (update to the
latest ICS if your version doesn't support NTML). And provide the require
credentials. Select your ISA server as proxy.

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] TWSocket Stop Listening After Certain Numbers ofConnected Clients.

2007-09-12 Thread Erich Kuba
Hi Wilfred,

Please can you explain this a bit more.

I also have this problem, and have actually had to resort to changing my
system design just to get it working acceptably.

What influences how much buffer RAM is used by each socket.  Is it data
through the socket?  Also, what is the relevance of OnBgException?  I'm not
binding to it.  Do I need to bind to it on my listening socket or my working
socket?  The listening socket passes the request to a working socket to be
processed.  Also, you talk about 1/8 of system RAM being able to be used for
this buffer RAM.  Is that for all applications, or is that per application.

I was really surprised when I hit this problem.  I would like to move back
to our original design, as we are concerned that the modified design is not
that scalable.

Any help that you or anyone else can offer in this regard would be much
appreciated.

Regards

Erich

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Wilfried Mestdagh
Sent: Wednesday, 12 September 2007 11:08 p.m.
To: ICS support mailing
Subject: Re: [twsocket] TWSocket Stop Listening After Certain Numbers
ofConnected Clients.


Hello Edward,

Possible you ran out of buffer space. Winsock use non pageble ram. The
non pageable ram can grow to max 1/8 the size of total ram. Depending on
traffic each socket need about 6 KB of it. And lots of other
applications uses that part of RAM also (all overlapped IO for example).

After all clients are disconnected you possible have all sockets still
in WAIT_STATE. That can be the reason.

Also be sure you hvae code in OnBgException and set CanClose to true. In
OnSessionClosd you can post a message to a custom message handler to
listen again.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Wednesday, September 12, 2007, 07:05, Edward Koo wrote:

 Hi,

 I wrote a server with TWSocket that receive high speed
 data and then push the data to connected clients. I
 did some stress test recently and found that the
 server will stop accepting client after it reach
 something like 500-600 concurrent clients on Windows
 XP and only about 180-200 on Windows Server 2003!?

 Any client attempts to connect at this point will get
 a socket error 10061, this happen even if all the
 previous clients are disconnected. A breakpoint to the
 code shows that SocketSessionAvailable will not
 trigger anymore. It's like the server listening socket
 is closed but I checked with Netstat -a and it shows
 that the server is still listening to the designated
 port.

 I tried to change WSocket_listen backlog to 200 but it
 won't help also. Any idea?






 Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
news, photos  more.
 http://mobile.yahoo.com/go?refer=1GNXIC

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