What is raw sockets?
And how do I work with them, how do I send and how do I recv?
Thanks.
What is raw sockets?
And how do I work with them, how do I send and how do I recv?
Thanks.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.
a raw socket allows instead of the operating system deciding and managing tcp, udp, icmp or other protocols, you will manage them yourself. this means you have a lot more power and can use the protocol directly and do many more things (including evil ones ; ) ) a sample program is ping which needs to take direct advantage of creating and sending icmp packets to work. it uses a raw socket for this.
good tutorial: http://fsix.net/files/raw_socket.txt
Thanks alot, I've been looking for a good tutorial on the subject.
But what about the Data Link, does the raw socket control this layer as well, or is it just riding it?
If so, how can I control this layer?
Thanks again.
Last edited by Devil Panther; 11-01-2003 at 01:30 AM.
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe
http://www.Bloodware.net - Developing free software for the community.