|
-
April 22nd, 2003, 08:41 AM
#1
where can I find a tutorial about raw socket programming?
Hi, everyone!
I want to know where can find a nice online
tutorial about raw socket programming on windows
platform?
Thanks in advance,
George
-
April 22nd, 2003, 09:06 AM
#2
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.
-
April 22nd, 2003, 09:22 AM
#3
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
-
April 22nd, 2003, 09:26 AM
#4
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
-
April 22nd, 2003, 11:43 AM
#5
This also is a good resource
http://tangentsoft.net/wskfaq/
It includes source code for its samples. Good luck!!
-
April 22nd, 2003, 12:54 PM
#6
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? 
edit: the link posted by MikeAThon, have a nice overview of "almost raw" sockets. http://tangentsoft.net/wskfaq/advanced.html#rawsocket
Last edited by Luis G; April 22nd, 2003 at 12:57 PM.
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
-
April 22nd, 2003, 01:27 PM
#7
Wakeup in the morning and kick the day in the teeth!! Or something like that.
"i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."
-
April 22nd, 2003, 03:30 PM
#8
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
-
April 23rd, 2003, 04:59 AM
#9
Thanks, souldog buddy!
The material is very helpful!
regards,
George
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|