Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

About RAW Socket

Posted on 1998-11-01
1
Medium Priority
?
386 Views
Last Modified: 2013-11-20
When I used WinSock 2 to write some program, I get a problem, that is:
 
setsockopt(sockRaw, IPPROTO_IP, IP_HDRINCL, (char *)&nOptVal, sizeof(nOptVal);
 
I get a error code 10042, that means: no support now.
 
Is current socket 2 can not support this type RAW_SOCK call? If it is true, can you give me a method about how to send all IP packet(include ip header)?
 
Thanks
 
Yuanye
0
Comment
Question by:yuanye
1 Comment
 
LVL 3

Accepted Solution

by:
vinniew earned 200 total points
ID: 1324122
There is some free code in c/c++ that will let you get access to the networking hardware at www.canberra.edu.  It's a driver, though.  I've never seen anyone implement the RAW_SOCK.  What are you trying to do?  I may have a work-around.

Vinnie
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Screencast - Getting to Know the Pipeline

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question