Delay sending small data packets via bluetooth

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

using WinCE6 i want to send datapackets from a client to a server and
back synchronously. Client- and Server applications are running on
different WinCE6 ARMV4I targets that are connected via bluetooth. In
the Client application there are two timestamps, one before the send
and another behind the recv measuring the roundtrip.
If I send small packets it takes a lot of more time than if i send
larger packets.
For that i tryed to disable the Nagle algorithm with TCP_NODELAY but
it has no effect.

SOCKET s = socket (AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);
....
connect (s, (SOCKADDR *)&sa, sizeof(sa));
....
int nNoDelay = 1;
if(0 != setsockopt(s,IPPROTO_TCP,TCP_NODELAY,(char *)
&nNoDelay,sizeof(nNoDelay)))
wprintf (L"Nagle for Socket not set\n");

If i get the flag again, getsockopt returns 8 as a result for
TCP_NODELAY.

Has someone a similar effect?
Is there another way to disable such a delay?
Why does getsockopt return 8 and not 1?

Thanks
Ebi
.



Relevant Pages

  • Re: A cross-platform vision for Delphi
    ... Kylix was /the/ answer some years ago to have client and server applications running on Linux. ... and now running server applications on Windows servers is neither a fantasy nor a proof of madness. ... Webapplications run well at client side (even on Mozilla on Linux) and this way of deploying applications is widely used everywhere hundreds of clients are using the same application that need to be frequently updated. ...
    (borland.public.delphi.non-technical)
  • Re: Norton Firewall blocking port 81
    ... > our server applications on several ports including port 81. ... > client has had some problem using our client application on his machine. ... > down his firewall allowed him to connect just fine. ...
    (comp.security.firewalls)
  • Norton Firewall blocking port 81
    ... We have developped a client application that initiates TCP connections to ... our server applications on several ports including port 81. ... The application was able connect to most of our server applications fine ... Norton Firewall installed and that shutting ...
    (comp.security.firewalls)
  • Re: Need advice on Ruby and game dev
    ... Gosu looks like its a very nice library. ... (Tip: dont name your ... Is there a similarly nice library for client / server applications ...
    (comp.lang.ruby)
  • Re: Forcing tcp client socket to close and not go into CLOSE_WAIT state
    ... and never closes fully until my client and server applications shut down. ... from the local user. ... Looks like either your client or server application is not closing its socket properly. ...
    (microsoft.public.dotnet.languages.csharp)