Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Romanian
  4. QT client to C server
Forum Updated to NodeBB v4.3 + New Features

QT client to C server

Scheduled Pinned Locked Moved Romanian
23 Posts 2 Posters 16.8k 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
    KupiKupi
    wrote on last edited by
    #21

    @connect (pSocket, SIGNAL(readyRead()), SLOT (handleRead()));@

    @void MainWindow::handleRead()
    {
    int recvBS = pSocket->readAll().size();
    qDebug () << recvBS;
    }@

    Am testat si primesc doar 28 in output.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KupiKupi
      wrote on last edited by
      #22

      In server o sa vreau sa citesc din fisier si sa trimit la client, deci exemplul cu Dinamo Steaua nu e chiar relevant. Totusi, as vrea sa ma asigur ca am sanse de reusita in ceea ce fac. Citire din fisier si trimitere prin socket la client.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cincirin
        wrote on last edited by
        #23

        bq. Am testat si primesc doar 28 in output.

        ... deci functioneaza bine acuma (din cate inteleg)

        bq. In server o sa vreau sa citesc din fisier si sa trimit la client

        Poti sa trimiti date la client citite de oriunde, de pe hdd, din alt socket, din memorie, etc ... poti sa creezi orice pachet de date

        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