Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Remoting Events ! Help Please !!

Remoting Events ! Help Please !!

Scheduled Pinned Locked Moved C#
sysadminhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    D2raghu
    wrote on last edited by
    #1

    have remoting with events working on a single machine, but... when I put the > server, client, and remote object on a 2nd machine.... things do not work > completely.. So basically I have the same 3 directories (Client, Server, > RemoteObject) on two machines. I run the server on machine1, the client on > machine2... Now client indeed has access to the remote object... and the > client does call a function on that remote object... as the console for the > server writes out a msg when it gets a request... > > public void BroadCastMessage(string msg) > { > IAsyncResult ar; > > Console.WriteLine("Raising EventHandler1"); > > System.Delegate[] invkList = EventHandler1.GetInvocationList(); > IEnumerator ie = invkList.GetEnumerator(); > while(ie.MoveNext()) > { > RemotingObject.EventHandlerDelegate handler = > (RemotingObject.EventHandlerDelegate)ie.Current; > try > { > ar = handler.BeginInvoke(msg,null,null); > } > > upon calling BeginInvoke, it sits for a second or three... but nothing on > the client occurs... > > Now if I ran the client & server on the same machine, things work.... > > any clues please....

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups