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 server

Remoting server

Scheduled Pinned Locked Moved C#
questionsysadmin
2 Posts 2 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.
  • G Offline
    G Offline
    Gavin Jeffrey
    wrote on last edited by
    #1

    Hi, I have a console remoting server with this in the main method - TcpChannel MyTcpChannel = new TcpChannel(9932); ChannelServices.RegisterChannel(MyTcpChannel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(DataLayer) ,"DataLayer",WellKnownObjectMode.Singleton); Console.WriteLine("Server Activated"); Console.ReadLine(); from my client side i can instantiate objects fine but i would like this server console app to display something as things happen - at the moment it just stops at "Server Activated" and then never says anything again. Is it possible to do this and if so how?? Im new to remoting so please excuse me if this question sounds ignorant or stupid.

    A 1 Reply Last reply
    0
    • G Gavin Jeffrey

      Hi, I have a console remoting server with this in the main method - TcpChannel MyTcpChannel = new TcpChannel(9932); ChannelServices.RegisterChannel(MyTcpChannel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(DataLayer) ,"DataLayer",WellKnownObjectMode.Singleton); Console.WriteLine("Server Activated"); Console.ReadLine(); from my client side i can instantiate objects fine but i would like this server console app to display something as things happen - at the moment it just stops at "Server Activated" and then never says anything again. Is it possible to do this and if so how?? Im new to remoting so please excuse me if this question sounds ignorant or stupid.

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Its easy if what I've understood is what u are trying. All console outputs must be implemented in the romote object, not the server. The remote object lives in the server side, so anytime one of its methods is called from the client side, the console output will show on the host side. Hope this is what u were looking for.

      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