Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. tcp server
    Log in to post

    • UNSOLVED QTcpSocket : readRead() not being triggered when data is written on the socket
      General and Desktop • qtcpsocket qtcpserver tcp tcpsocket tcp server • • RBLL  

      11
      0
      Votes
      11
      Posts
      1082
      Views

      The edited part of @JonB is important, you have to read the data.
    • UNSOLVED Tcp/Ip client-server communication in qt c++
      General and Desktop • tcp tcpsocket tcp server • • karthik23  

      6
      0
      Votes
      6
      Posts
      3672
      Views

      @karthik23 said: where should i insert this code exactly? where you need it :) I mean u asked the question because you want to achieve something. Since it's still not very clear what you want as the final result, i can't help you. For testing you can add it in the line where your qDebug() calls is.
    • SOLVED C++ Multi-Client TCP Server with QList
      General and Desktop • signal & slot qlist tcp tcpsocket tcp server • • Hannes T  

      3
      0
      Votes
      3
      Posts
      2360
      Views

      @mrjj Thank you a lot, it works!!!
    • QTcpSocket/Server issue
      General and Desktop • tcp server dynamic ip • • Antweb  

      7
      0
      Votes
      7
      Posts
      2693
      Views

      First, you need to have public IP on your server PC, that is: a) you must have only one router (not two or more cascaded in your home), and b) you must use UPnP to open the ports you want to listen on. Unfortunately, for whatever reason, Qt never bothered to at least port a UPnP library (e.g. miniupnp) to Qt. Second, you need to know, from the outside, sour server's IP: for this you need a "known server" with a known static IP where you should publish your server PC's IP each time the server starts, or use something like dyndns. Finally, even with the setup above, you can only use this solution if your server PC does not connect via a mobile network, because in that case you can't open any UPnP ports on your provider. (see http://stackoverflow.com/questions/13996361/getting-around-nat-for-p2p-app-if-i-have-all-ip-info/14202854#14202854 )
    • See all open connections in my tcp server.
      General and Desktop • tcp tcp server • • ealione  

      2
      0
      Votes
      2
      Posts
      697
      Views

      @ealione said: How can I get all open connections on my TCP server? You need to do this in the code?? In that case you have to store the list on connections in some containers (QVector, QMap, ...)
    • Create a http server able to accept files for upload.
      General and Desktop • network tcp server • • ealione  

      3
      0
      Votes
      3
      Posts
      1586
      Views

      Hi Arthur, Very interesting link. Actually some of his other projects look quite interesting too, albeit being in german.