Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing Client/Server On A Non-Application Layer

How can I develop a network application (client/server) that will work in the transport or network layers of the ISO OSI model? For example: if I don't wan't the system to pack a data in a TCP or UDP packet, but instead I want to use my own protocol? How can I achieve that?

Help will be very appreciated!

like image 843
ktovet doar Avatar asked May 28 '26 01:05

ktovet doar


1 Answers

For the transport layer you should use raw sockets.

For the network layer you could use e.g. libpcap. See here for a simple HOWTO.

like image 161
Some programmer dude Avatar answered May 31 '26 21:05

Some programmer dude