Hi, everyone!
I want to know where can find a nice online
tutorial about raw socket programming on windows
platform?
Thanks in advance,
George
Printable View
Hi, everyone!
I want to know where can find a nice online
tutorial about raw socket programming on windows
platform?
Thanks in advance,
George
http://www.codeguru.com/forum/showth...hreadid=231055
Before you post, please check the FAQ section. There are a few FAQ questions about winsock programming that might enlighten you, and if not search code guru's code vault for an example program.
Thanks, Eli buddy!
My trouble is I do not find some sample code about how
to receive raw socket (raw socket input). In most tutorials, it
only deals with how to output raw sockets (Ping and Tracert
demo).
Can you help?
regards,
George
You need to set your port to listen and then bind the socket.
Here, check this tutorial out
http://www.district86.k12.il.us/cent...ck/Lesson3.htm
hth
This also is a good resource
http://tangentsoft.net/wskfaq/
It includes source code for its samples. Good luck!!
Eli Gassert, those are not raw sockets. Proof:
sListen = socket(AF_INET, SOCK_STREAM, IPPROTO_IP);
SOCK_STREAM is TCP.
As far as i know there was no way to programm true raw sockets in windows, well until winxp, but i don't know if they included them or not.
If you want to program raw sockets, you could do it in Linux, just research about the TCP packet structure and you're basically done.
you're not trying to collapse the internet, are you? :D
edit: the link posted by MikeAThon, have a nice overview of "almost raw" sockets. http://tangentsoft.net/wskfaq/advanced.html#rawsocket
Did you look in the SDK samples?
I don't know how many of the following would help but here they are in case they do.
WinSock-L HomePage
WinSock Development Information
sockaddr.com
RAD University
Thanks, souldog buddy!
The material is very helpful!
regards,
George
Quote: