Re: Coomunication between applications

From: Brian Cook (bcook_at_rowdydogsoftware[REMOVE)
Date: 10/24/03


Date: Fri, 24 Oct 2003 10:35:30 -0500


> I have now got the code straightened out so the messages sent from the
> client(s) to the host are sent specifically to the hosts window handle
> whereas the relatively few "event" messages sent from the host to the
> client(s) are still broadcasted of convenience. And guess what: FULL SPEED
> achieved!

Excellent!

> Two more things could be done. Maintain a list of client handles and then
> fire the events specifically to these handles.

Or, have the clients include their window handle in the request...

  SendMessage( ServerWindowHandle, MessageID, 0,
      {-->} MyWindowHandle {<--} );

...the server now knows exactly who sent the request and can respond
directly when the server finishes.

> Also, since my host events do
> not get a return value I could use WM_COPYDATA here instead of shared
> memory. Probably not faster but nicer and simpler.

Word of warning about WM_COPYDATA: do NOT broadcast this message. A few
Microsoft applications (including explorer) will sometimes crash when
they recieve an unexpected WM_COPYDATA message.

I hope you have a good weekend,
Brian



Relevant Pages

  • Re: W2K3 Excessive ARP Traffic
    ... ARP request don't simply run constantly. ... request going out for every remote mail server that it tries to send to. ... > My new W2K3 Enterprise Edition server seems to broadcast gratuitous ARP> packets every two seconds. ...
    (microsoft.public.windows.server.networking)
  • troubleshooting help
    ... I am trying to figure out why my mpd server won't ... PACKET: REGISTRATION; REQUEST; BROADCAST ... PACKET: QUERY; REQUEST; BROADCAST ...
    (freebsd-questions)
  • Re: Resolving hostnames in remote VPN network
    ... Rather than a broadcast going through, it probably sent a name request to ... your WINS server and got a reply. ... > it appears the NBT broadcast did get the VPN connection. ...
    (microsoft.public.win2000.ras_routing)
  • Server Boradcast
    ... I have everything set according to the documentation. ... When I try to broadcast ... The request could not be understood by the server ... Real Networks Helix Server is so much easier. ...
    (microsoft.public.windowsmedia.encoder)