V
V
VitiaKotik2020-06-18 14:21:20
C++ / C#
VitiaKotik, 2020-06-18 14:21:20

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

3 answer(s)
M
mayton2019, 2020-06-18
@VitiaKotik

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.

1
15432, 2020-06-18
@15432

Create and send - for example, in Python using the socket library. What will he send? - Well, what you put in it, it will transmit.

A
Alexander Ananiev, 2020-06-18
@SaNNy32

blog.hoxnox.com/inet/tcp_programming.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question