Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qlocalserver & qlocalsocket server restart
QtWS25 Last Chance

Qlocalserver & qlocalsocket server restart

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.5k Views
  • 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.
  • S Offline
    S Offline
    shorawitz
    wrote on last edited by
    #1

    Newbie question here!

    I want to create two processes, server/client, that will pass data between from client to server when the client has something new (data from client comes from a QTcpServer class.) I've looked over all of the IPC methods, and I thought qlocal(server|socket) gave me the best options (I want to emit a signal when shared data is available.)

    I want to be able to restart server at will (frequent code updates that the client will receive from QTcpServer class) but I'm not sure how to handle the socket reconnect properly. Are there any examples out there that show how to detect socket disconnect, reconnect?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shorawitz
      wrote on last edited by
      #2

      Here's a twist (maybe...) I'm wondering if it makes more sense start the server as a QProcess of the client. That way, it might be easier|better to monitor the server's state as well as control restarts.

      As I mentioned, I'm a newbie. Just starting out w/Qt and only a moderate c++ programming to begin with. So if I'm way off base, just let me know and go back and do some more research.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved