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