Results 1 to 2 of 2

Thread: Dual TCP/IP Client/Server

  1. #1
    Join Date
    Mar 2007
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Dual TCP/IP Client/Server

    I'm writing a new application that is going to accept read data from one TCP/IP socket and reflect it to a second TCP/IP connection. My problem is that the application on the receive side needs to act as both a client (request connection) and server (listen for connection requests). The same will be true on the send side of my application. I have no idea if the distant applications are going to be TCP/IP clients or servers so I need to be able to support both on my end.

    Does anybody have ideas or code examples on how I can address this problem?

    Thanks

    Jim.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Dual TCP/IP Client/Server

    Quote Originally Posted by jimroos View Post
    Does anybody have ideas or code examples on how I can address this problem?
    What problem? You simply want to develop some kind of a proxy or a broker and there is no problem in doing this. You'll need QTcpServer and QTcpSocket.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.