Results 1 to 3 of 3

Thread: .NET Remoting

  1. #1

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    .NET Remoting

    I've been playing around with remoting for a while. Now that I've actually started a serious project with it, I've run into something important: How can you implement the shared object so that only the server can trigger certain events?
    suppose:

    Code:
    // ...
    public delegate void AdminTriggeredEvent(/* .... */ );
    
    public interface IWellKnownInterface
    {
        /*
        ....
        */
        event AdminTriggeredEvent AdminEvent;    
    };



    Without, for example, using a public / private key encryption to verify the sender of every event (which would be very inefficient), any client could trigger this event.

    Thoughts?
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Does remoting allow more than one client at once? If not, why would you worry about that? The event only gets fired by the server, so the server probably won't listen to it. If the (only) client now fires the event, it only confuses itself.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403
    As far as I know, it does. (The C# corner article this week talks about calling events asynchronously so that one client timing out wont prevent the events from being triggered on the others.

    All very interesting stuff, but hard to wrap your head around.
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width