Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 29 Nov 2005 11:19:45 +0100,    group: microsoft.public.win32.programmer.directx.networking        back       


network connection via winsock too slow?   
Hi there,

I have two applications which I'm trying to sychronize via winsock.

One application sends a message to the connected client 60 times per 
second over a 1GBit LAN. But in some kind of way the client only 
receives 5-8 per second.

Maybe it's important that i work with two threads, one listening and one 
  which is waiting (looping until receiving a go) for the go from server 
and then does some stuff.

If i try it on the same computer via localhost it works perfectly with 
60 times per second.


Is the description good enough to give you an idea of the problem? I'm 
kinda new to winsock programming...

In general, I have a directx application which should be 
framesynchronized (outputting exactly the same frames at the same time) 
- any other ways how I can get that to work?


Thanks for any help,
flo
date: Tue, 29 Nov 2005 11:19:45 +0100   author:   Flo

Re: network connection via winsock too slow?   
Flo wrote:

> Hi there,
> 
> I have two applications which I'm trying to sychronize via winsock.
> 
> One application sends a message to the connected client 60 times per 
> second over a 1GBit LAN. But in some kind of way the client only 
> receives 5-8 per second.

This is NOT a DPlay question, but I do have an idea.

I bet you are using TCP, right? If so, then you need to learn that TCP is a 
stream and not messages. You also need to understand send coalescing. If you do 
not understand this then you need to do more research and studying before you do 
any more network programming.

-- 
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
date: Mon, 05 Dec 2005 11:43:27 -0800   author:   Phil Frisbie, Jr.

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us