Answer the question
In order to leave comments, you need to log in
TCP - how to create your own package?
Good afternoon! How to create your own package in C ++ and what will it transfer?
Answer the question
In order to leave comments, you need to log in
C TCP usually does not work in packets. Work in streams or Streams. This is a normal level for an application programmer. And I almost do not know tasks other than student labs where someone suddenly needed a package as such.
There are plenty of examples. API: socket(), connect(), bind() ,listen().
Therefore, the author may need a fundamentally different protocol. Applied UDP. Or a more system IP, but the latter is more difficult to work with. OSes prohibit it directly. Through it, it is easy to arrange various Syn-Flood attacks. You need to somehow elevate privileges or use third-party libs.
Create and send - for example, in Python using the socket library. What will he send? - Well, what you put in it, it will transmit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question