i don't know how much down i should go in OSI.
let me explain a bit more:
one day i read in this forum that someone wants to make a port scanner.
he used a library to achieve this goal:
"try to connect to the port, if didn't connect, then the port is closed." |
he said.
this operation might take relatively long time.
if i want to make a port scanner, i'd go in another approach:
i'd send the connect request, and rather than complete the protocol, i'd send other connect requests, while another thread in my program shall monitor for replies.
this way you can scan so many ports in a short time.
this approach requires that i don't use a premade function to connect to a port, but to send a specific binary message of my desire.
maybe this won't work for this specific example, but you can imagine the domain i can use this technique in.
i don't need a function to complete a connection protocol for me, i want to write this function.
this is how low i need to get, can this be done in native C++, if not, is there some library that contains basic communication functions (
sendMessage(char*), ...etc).
i'm learning right now about OpenGL, it looks like the VGA driver implements it, doesn't the network adapter definition implement some similar API ??
PS: i'm a beginner, but i'm ready to put effort in learning.