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. How to write commands to qsslsocket, so it can read?
Forum Updated to NodeBB v4.3 + New Features

How to write commands to qsslsocket, so it can read?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 252 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
    kayakaan02
    wrote on last edited by
    #1

    So I've got a ftp server and a client. The server reads the commands sent from client with
    (QSslSocket *socket;) socket->readLine().

    But I want to give commands from server so I should write a string to socket so it can read and process.

    How can I do that? thanks in advance.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Is there a reason you can't use
      https://doc.qt.io/qt-6/qsslsocket.html#writeData

      K 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Is there a reason you can't use
        https://doc.qt.io/qt-6/qsslsocket.html#writeData

        K Offline
        K Offline
        kayakaan02
        wrote on last edited by
        #3

        @mrjj writeData's purpose is sending data to client I think.

        Ftp client sends commands with ftpClient.submitEvent("command").

        I couldn't find anything can be used in place of ftpClient.submitEvent("command") from the server, I think it is not designed to do this so I will seek another solutions.

        I will try to update if I can find anything related/can be used.

        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