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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. A question about Remoting

A question about Remoting

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
4 Posts 3 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.
  • Y Offline
    Y Offline
    yyj_ljz
    wrote on last edited by
    #1

    How can make the tcpchannel stop listening the port without stop de application? Thanks a lot!

    A 1 Reply Last reply
    0
    • Y yyj_ljz

      How can make the tcpchannel stop listening the port without stop de application? Thanks a lot!

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

      hi, You can do so by using : System.Runtime.Remoting.Channels.Tcp.TcpChannel().StopListening(); method... Hope this solves your prob... regards, Aryadip. Cheers !! and have a Funky day !!

      Y 1 Reply Last reply
      0
      • A Aryadip

        hi, You can do so by using : System.Runtime.Remoting.Channels.Tcp.TcpChannel().StopListening(); method... Hope this solves your prob... regards, Aryadip. Cheers !! and have a Funky day !!

        Y Offline
        Y Offline
        yyj_ljz
        wrote on last edited by
        #3

        o, thanks for your replying! but it seems do not work as expected! the port is still open,then i use System.Runtime.Remoting.Channels.ChannelServices.UnregisterChannel ,and it's ok! thanks a lot,my dear friend!

        N 1 Reply Last reply
        0
        • Y yyj_ljz

          o, thanks for your replying! but it seems do not work as expected! the port is still open,then i use System.Runtime.Remoting.Channels.ChannelServices.UnregisterChannel ,and it's ok! thanks a lot,my dear friend!

          N Offline
          N Offline
          normanordas
          wrote on last edited by
          #4

          It might have worked but it doesnt seem to be the correct procedure. The next time you need the tcpchannel to listen again then you have to register it. Succedding calls mean registering and unregistering the channel and thats quite tedious process and surely wud entail performance penalty. Is there other way we cud do that?

          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