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. BackGround Service for connection....

BackGround Service for connection....

Scheduled Pinned Locked Moved C#
wcfhelptutorial
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.
  • K Offline
    K Offline
    King Julien
    wrote on last edited by
    #1

    Hi all.... Let me explain about the project am working on now..... I have a specific device with a dedicated IP address and port, whose methods can be called by using the web services. So whenever i require some data from the device i create a proxy for the specified web service and any method in that particular web service can be called and used. By this way am able to achieve the functionality. But the problem is, the time taken by the proxy to establish the connection is very high. So whenever i run my application to call a specific method to acquire some data it takes more time to establish the connection, but once the connection is made, it is quite faster in the consecutive method calls..... e.g myapp 127.1.2.3 1254 time myapp---->>> exe name 127.1.2.3---->>> IP address as an argument 1254---->>> port number as an argument time---->>> command name as argument will print the time of the device in the screen. Any new command like date, counters etc... can be given as myapp 127.1.2.3 1254 date myapp 127.1.2.3 1254 counters and so on..... Each of this commands takes more time to establish the connection and obviously more time to print the results. So i planned to run a windows service which will take the ip address and port as the argument and run in the background, so that it establishes the connection and which can just return the live proxy name to myapp whenever required, so that the methods can be called using the existing proxy.... I have even created a test windows service(without any webservices and proxies for checking) and installed and checked. But it takes only int as arguments that too only (128 to 256)... i have googled about this and found some techniques called remoting, IPC mechanisms etc.... But no fruitful results on what i am expecting.... Please suggest me how to proceed with this and any sample codes would also be greatly appreciable....

    E 1 Reply Last reply
    0
    • K King Julien

      Hi all.... Let me explain about the project am working on now..... I have a specific device with a dedicated IP address and port, whose methods can be called by using the web services. So whenever i require some data from the device i create a proxy for the specified web service and any method in that particular web service can be called and used. By this way am able to achieve the functionality. But the problem is, the time taken by the proxy to establish the connection is very high. So whenever i run my application to call a specific method to acquire some data it takes more time to establish the connection, but once the connection is made, it is quite faster in the consecutive method calls..... e.g myapp 127.1.2.3 1254 time myapp---->>> exe name 127.1.2.3---->>> IP address as an argument 1254---->>> port number as an argument time---->>> command name as argument will print the time of the device in the screen. Any new command like date, counters etc... can be given as myapp 127.1.2.3 1254 date myapp 127.1.2.3 1254 counters and so on..... Each of this commands takes more time to establish the connection and obviously more time to print the results. So i planned to run a windows service which will take the ip address and port as the argument and run in the background, so that it establishes the connection and which can just return the live proxy name to myapp whenever required, so that the methods can be called using the existing proxy.... I have even created a test windows service(without any webservices and proxies for checking) and installed and checked. But it takes only int as arguments that too only (128 to 256)... i have googled about this and found some techniques called remoting, IPC mechanisms etc.... But no fruitful results on what i am expecting.... Please suggest me how to proceed with this and any sample codes would also be greatly appreciable....

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      If they are all on the same web service, only the first call should take a while. And that shouldn't be that big of a deal, if it is, you will need to find another technology.

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      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