Re: low level local networking




"Alan Garny" <someone@xxxxxxxxxxxxx> wrote in message
news:44911a6b@xxxxxxxxxxxxxxxxxxxxxxxxx
"Bart van der Werf" <bluelive@xxxxxxxxx> wrote in message
news:44911085$1@xxxxxxxxxxxxxxxxxxxxxxxxx

"Roddy Pratt" <roddy at spam fritter dot com> wrote in message
news:449093d4$1@xxxxxxxxxxxxxxxxxxxxxxxxx
"Alan Garny" <someone@xxxxxxxxxxxxx> wrote in message
news:4490401f@xxxxxxxxxxxxxxxxxxxxxxxxx
"Bart van der Werf" <bluelive@xxxxxxxxx> wrote in message
news:44903576@xxxxxxxxxxxxxxxxxxxxxxxxx

if you choose tcp/ip don't use indy but go directly to winsock btw.

Why is that?

I have no idea. There's absolutely nothing wrong with Indy for most
real-time apps.

And don't optimise before you know you need to....

We noticed some problems with indy9 which we use.

some timeouts don't work
connecting a tcp socket uses a thread for connecting which sleeps a large
amount of time causing it too take 200ms minimum and a few more issues,
among which not compiling without warnings on d2006.

Have you tried to upgrade to Indy10?

I took a brief attempt which soon abandonned because the api is very much
different.
With our own workarounds for indy9 its usable, altough not really fast. If i
had to put in the time to change it to another api i'd go for winsock atm.

Ow one important one i missed:

Writing a large buffers causes it to do some stupid things.
TIdTCPConnection.WriteBuffer behaves badly if you supply it large amounts of
data at once, my workaround was to call it in a loop with 4k chunks of what
we wanted to send.

grt, Bart


.



Relevant Pages

  • RE: Web Services Processor Utilization
    ... The problem is taht you still don't know if the spike is caused by the ... service logic or by the logic you called through the API! ... >>> I have written a web service that returns an XmlDocument. ... >>> limit the amount of CPU used? ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: fast file count method?
    ... otherwise you need to PInvoke C++ function from Win API. ... Exactly how you go about counting them is a matter of some ... the Win32 level and so will all take about the same amount of time. ...
    (microsoft.public.dotnet.framework)
  • Query virtual bytes
    ... an API I can add to my program to query the amount of virtual address my ... amount of virtual address space my single process has so far consumed. ... Bruce. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Unhappy Xorg upgrade
    ... This is a VNC problem, it uses an old API which has been removed in ... newer X.org servers: ... See also here (and for possible workarounds): ...
    (freebsd-stable)
  • Re: QUSLFLD API and DSPFFD REFFLD Reference Field and file
    ... The API you need is QDBRTVFD. ... I call this one "The Mother of All ... The section of the "vast" amount of information returned by ...
    (comp.sys.ibm.as400.misc)