PDA

View Full Version : how can I prepare TCP Pckets and send them



k.qasempour
16th February 2013, 08:27
Hi all... I'm trying to do such a exercise which in I need to prepare my own TCP packet and send it to target...
I need some documentation how can I do that, and if there any existence classes in Qt libraries for this purpose.

wysota
16th February 2013, 13:04
There is nothing in Qt that can help you with that. Qt abstracts the TCP protocol so you don't craft your own IP packets but rather just stream bytes that are wrapped into TCP for you by the system. You need to use your system's RAW socket API if you want to construct your own tcp segments. I understand this is some kind of school/university exercise, right?