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. Send a TCP packet with ASCII app.layer protocol

Send a TCP packet with ASCII app.layer protocol

Scheduled Pinned Locked Moved General and Desktop
tcp packetasqii protocolixxat
4 Posts 2 Posters 1.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.
  • J Offline
    J Offline
    Javad
    wrote on 21 Jul 2016, 08:38 last edited by
    #1

    hi,
    i want to send a TCP packet to a Ethernet-can modules (CAN@net II) .it's app.layer protocol is Ascii protocol (not HTTP) that i think is specific to IXXAT company.
    How can i create a TCP packet with a new app.layer protocol ?
    thanks

    J 1 Reply Last reply 21 Jul 2016, 08:55
    0
    • J Javad
      21 Jul 2016, 08:38

      hi,
      i want to send a TCP packet to a Ethernet-can modules (CAN@net II) .it's app.layer protocol is Ascii protocol (not HTTP) that i think is specific to IXXAT company.
      How can i create a TCP packet with a new app.layer protocol ?
      thanks

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Jul 2016, 08:55 last edited by
      #2

      @Javad Hi!
      You should start with http://doc.qt.io/qt-5/qtnetwork-index.html
      and http://doc.qt.io/qt-5/qtnetwork-programming.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Javad
        wrote on 21 Jul 2016, 11:11 last edited by
        #3

        thanks for your answer!
        but this 2 links are about HTTP & FTP app.layer protocol.but i want to send TCP packets with my Specefic protocol.
        for example create byte to byte of my Specefic protocol in a function and send in TCP format.
        please help me.

        J 1 Reply Last reply 21 Jul 2016, 11:28
        0
        • J Javad
          21 Jul 2016, 11:11

          thanks for your answer!
          but this 2 links are about HTTP & FTP app.layer protocol.but i want to send TCP packets with my Specefic protocol.
          for example create byte to byte of my Specefic protocol in a function and send in TCP format.
          please help me.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 21 Jul 2016, 11:28 last edited by
          #4

          @Javad No, it is not only for HTTP/FTP. See "Using TCP with QTcpSocket and QTcpServer" part. You can use QTcpSocket for TCP/IP communication to send any data. TCP/IP doesn't care what your (application level) protocol is - it just sends data over network.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          3/4

          21 Jul 2016, 11:11

          • Login

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