CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2001
    Location
    CA , USA
    Posts
    83

    Angry Software routing..

    Im new to network programming. Let me tell what my requiremets are.. And Please suggest me the psooible solutions.
    I have a server computer to which a hardware is attached. The hardware works on TCP/Ip. The requirement is to connect to the hardware remotely from any client machine. So to avoid the hardware being availabe to everybody(not to keep it in public network), we have created a subnet in which the hardware and the server computer reside. Now i have to talk to the hard ware using the APIs and command sets provided by the harware vendor thro any client machine. So i need some thing ( may be a software routing) that makes it possible for the client machine to control the hardware after getting the permission from the server.Server computer is also part of the bigger network. In other words server compuet will have 2 ethernet cards one for talking to the hardware another for talking to the rest of the world. Any help / code to do this is greately appreciated.

  2. #2
    Join Date
    Feb 2004
    Posts
    232
    well, thats quite a setup there. It's going to be pretty hard, considering the fact that some routers/hubs/switches IP's are sometimes different from others. But I recommend to do the good ol' Server/Client-side architecture.
    Need help with anything related to audio programming? I can help!

  3. #3
    Join Date
    Feb 2002
    Posts
    5,757
    There are several solutions. One solution is socket. Another solution is COM.

    Kuphryn

  4. #4
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Well...since you want to restrict the access to the hardware, using a standard client/server approach would be the best idea in my eyes.

    Client will connect to the server and request something from the hardware. The server in turn will forward this request to the hardware and wait for the response. As soon as the hardware has responded, the server will sent back the response to the client. This way, the server can restrict the access pretty easy...

    As a starting point for TCP/IP communication...Winsock Programmer's FAQ...

  5. #5
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266

    Re: Software routing..

    Originally posted by coolshashi
    So i need some thing ( may be a software routing) that makes it possible for the client machine to control the hardware after getting the permission from the server.
    You need to determine if the APIs and command sets provided by the harware vendor include mechanisms for getting permission to connect to the server. If so, then you must use it.

    I am not sure if there is a separate IP address for each of the two network cards but I think there would be. So just be aware that you will be using the IP address of the network card for talking only to the server. Or actually, with a separate network card, isn't there separate physical cables? I am not familiar with networks to be sure of details such as that.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

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

Featured