Re: [twsocket] Package Count / Wireshark

2009-09-10 Thread Tobias Rapp
Alper Albayrak wrote:

 Monitoring packages arrived, I see that one of the packages (505 byte) is
 divided into 3 packages.
 
 What i want to ask; is this the way tcp protocol transfers data over
 network,
 or package count is because of the method client uses to send data..?

I once have also seen this some long time ago when tracing the network traffic. 
Don't remember how I reacted but maybe you can check the size of data blocks 
passed to tWSocket send functions and check the tWSocket.BufSize property.

Optimizing the data throughput with Windows sockets is still a big mystery to 
me. If anybody else has some ideas, please share.

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


Re: [twsocket] ICS V7 Status

2009-09-10 Thread Anatoly Podgoretsky
Thanks all,

I found it in SVN and it works.

Anatoly Podgoretsky
http://www.podgoretsky.com


- Original Message - 
From: Francois PIETTE francois.pie...@skynet.be
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, September 08, 2009 10:10 PM
Subject: Re: [twsocket] ICS V7 Status


 Francois did not update his website for a long time
 
 Right :-(
 I will do it next week-end.
 
 --
 francois.pie...@overbyte.be
 The author of the freeware multi-tier middleware MidWare
 The author of the freeware Internet Component Suite (ICS)
 http://www.overbyte.be
 
 
 - Original Message - 
 From: Arno Garrels arno.garr...@gmx.de
 To: ICS support mailing twsocket@elists.org
 Sent: Tuesday, September 08, 2009 8:23 PM
 Subject: Re: [twsocket] ICS V7 Status
 
 
 Anatoly Podgoretsky wrote:
 Hi Arno,
 
 I downloaded version from main Overbyte site, link is
 javascript:top.StartDownload('eng',
 'arch/OverbyteIcsV7_Alpha1.zip'); 
 
 Francois did not update his website for a long time, I must
 admit that this is confusing, I pray multiple times a week
 to get ICS from the wiki link :)
 
 --
 Arno Garrels
 
 
 
 Anatoly Podgoretsky
 http://www.podgoretsky.com
 
 
 - Original Message -
 From: Arno Garrels arno.garr...@gmx.de
 To: ICS support mailing twsocket@elists.org
 Sent: Tuesday, September 08, 2009 8:57 PM
 Subject: Re: [twsocket] ICS V7 Status
 
 
 Anatoly Podgoretsky wrote:
 Hi Angus,
 
 Thanks for helps.
 
 I tryed install (with correction of inc file for version Ver210) and
 have no success, 179 warnings and 3 errors.
 
 You obviously did not try to install latest version, instead get
 current ICS from:
 http://wiki.overbyte.be/wiki/index.php/FAQ#How_to_get_ICS
 
 --
 Arno Garrels
 
 
 Anatoly Podgoretsky
 http://www.podgoretsky.com
 
 
 - Original Message -
 From: Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk
 To: twsocket@elists.org
 Sent: Tuesday, September 08, 2009 6:30 PM
 Subject: Re: [twsocket] ICS V7 Status
 
 
 1. Is it posible to use V7 in production environment, how stable
 it now. I plan use as udp client and server, and http client and
 server.
 
 I already use V7 in a production environment, for commercial
 applications.
 
 
 2. What about Delphi 2010?
 
 There were no changes needed in ICS for D2010, except version
 conditionals and new packages, there's no reason to believe it's
 any less reliable than use with Delphi 7, 2007 and 2009.
 
 Angus
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 --
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

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


Re: [twsocket] Package Count / Wireshark

2009-09-10 Thread Francois PIETTE

i used wireshark to monitor activity on the port i m listening on.Protocol
is TCP and the server was build with ICS TWSocketServer.

Monitoring packages arrived, I see that one of the packages (505 byte) is
divided into 3 packages.

What i want to ask; is this the way tcp protocol transfers data over
network,
or package count is because of the method client uses to send data..?

...

Can we make a package transfered in a whole (in size limitations) or tcp
decides how to transfer data by itself?


Using PutDataInSendBuffer or PutStringInSendBuffer you can place data in the
send buffer without actualy trying to send it. This allows to place several
(probably small) data chunk before the component attempt to send it. This
prevent small packet to be sent. You can call Send(nil, 0) to force the
component to begin to send data. If the buffer was not empty,
PutDataInSendBuffer will just queue data to the buffer. This data will be
sent in sequence.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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


Re: [twsocket] Package Count / Wireshark

2009-09-10 Thread Arnaldo Braun

Hi

You can try to modify the normal behavior of TCP by setting 
wsoTcpNoDelay in TWSocket.ComponentOptions.


This can avoid some TCP small packets caching.

[]s
Arnaldo


Tobias Rapp escreveu:

Alper Albayrak wrote:

  

Monitoring packages arrived, I see that one of the packages (505 byte) is
divided into 3 packages.

What i want to ask; is this the way tcp protocol transfers data over
network,
or package count is because of the method client uses to send data..?



I once have also seen this some long time ago when tracing the network traffic. 
Don't remember how I reacted but maybe you can check the size of data blocks 
passed to tWSocket send functions and check the tWSocket.BufSize property.

Optimizing the data throughput with Windows sockets is still a big mystery to 
me. If anybody else has some ideas, please share.

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

  


--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.

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


Re: [twsocket] Package Count / Wireshark

2009-09-10 Thread Piotr Dałek
Hello!

 i used wireshark to monitor activity on the port i m listening on.Protocol
 is TCP and the server was build with ICS TWSocketServer.

 Monitoring packages arrived, I see that one of the packages (505 byte) is
 divided into 3 packages.

 What i want to ask; is this the way tcp protocol transfers data over
 network,
 or package count is because of the method client uses to send data..?

Depends. Packet size is typically limited to ~1500 bytes, can go up to
few kilobytes if jumbo frames are enabled. Regardless, depending of
through what your data have come, they can be split into smaller packets
(that's called packet fragmentation). Also, if sending side disables
Nagle algorhitm (sets tcpNoDelay flag), data are sent immediately - one
packet per one send call. If that flag is not set, data are sent only
after filling up a packet or after a few miliseconds of pause between
send's. 

 Can we make a package transfered in a whole (in size limitations) or tcp
 decides how to transfer data by itself?

Between sending and receiving side there may be a router or bridge
that can't handle certain packet sizes. At this point your packets might
be split into two or more. 

 The reason i am in this case is not the package count, but the headers used
 to form a package which makes data count increase..

See above. Either don't disable Nagle algorithm or send in large chunks.
As receiving side, you can't do anything to reduce packet count.


(as a side note, in client-server request-response scenarios, packet
count can be dramatically reduced by utilizing pipelining, that is -
sending all requests in one go and then waiting for responses instead of
sending single request, waiting for response, sending another request, ...
and so on; for POP3/NNTP protocol you usually can fit all your RETR/ARTICLE
requests in just one outgoing packet).   

-- 
Piotr Dałek
enigmati...@interia.pl

--
Praca za granicą? Zobacz oferty!
http://link.interia.pl/f2331

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


[twsocket] ICS group on social networks LinkedIn and FaceBook

2009-09-10 Thread Francois PIETTE

Hi !

Every ICS user is invited to be part of ICS-group on Linked-In. 
See http://www.linkedin.com/e/gis/136245
Why ? 
Just to have a little bit more visibility for everyone of us and for  ICS.


There is another one on FaceBook:
http://www.facebook.com/pages/ICS-Internet-Component-Suite/39493622127

btw: You may also be part of Powered by Delphi group on Linked-In.
http://www.linkedin.com/e/gis/48600

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


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