Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reading a PDF File Pin
R. Giskard Reventlov19-Sep-10 20:49
R. Giskard Reventlov19-Sep-10 20:49 
Questionproblem reading from app.config Pin
Jassim Rahma19-Sep-10 6:23
Jassim Rahma19-Sep-10 6:23 
AnswerRe: problem reading from app.config Pin
Luc Pattyn19-Sep-10 7:00
sitebuilderLuc Pattyn19-Sep-10 7:00 
QuestionRe: problem reading from app.config Pin
i.j.russell19-Sep-10 20:58
i.j.russell19-Sep-10 20:58 
QuestionHow to use SetPortVal() and GetPortVal() of winio?? Pin
shushi.lin19-Sep-10 4:39
shushi.lin19-Sep-10 4:39 
AnswerRe: How to use SetPortVal() and GetPortVal() of winio?? Pin
Dave Kreskowiak19-Sep-10 7:24
mveDave Kreskowiak19-Sep-10 7:24 
QuestionTCP Header structure Pin
95ulisse19-Sep-10 3:02
95ulisse19-Sep-10 3:02 
AnswerRe: TCP Header structure Pin
Dave Kreskowiak19-Sep-10 7:21
mveDave Kreskowiak19-Sep-10 7:21 
You may first want to read a small section in this article[^] on Raw Sockets.

Reads:
Limitations on Raw Sockets
On Windows 7, Windows Server 2008 R2, Windows Vista, and Windows XP with Service Pack 2 (SP2), the ability to send traffic over raw sockets has been restricted in several ways:


•TCP data cannot be sent over raw sockets.
•UDP datagrams with an invalid source address cannot be sent over raw sockets. The IP source address for any outgoing UDP datagram must exist on a network interface or the datagram is dropped. This change was made to limit the ability of malicious code to create distributed denial-of-service attacks and limits the ability to send spoofed packets (TCP/IP packets with a forged source IP address).
•A call to the bind function with a raw socket is not allowed.
These above restrictions do not apply to Windows Server 2008 , Windows Server 2003, or to versions of the operating system earlier than Windows XP with SP2.


Note The Microsoft implementation of TCP/IP on Windows is capable of opening a raw UDP or TCP socket based on the above restrictions. But other Winsock providers may not support the use of raw sockets.

There are further limitations for applications that use a socket of type SOCK_RAW. For example, all applications listening for a specific protocol will receive all packets received for this protocol. This may not be what is desired for multiple applications using a protocol. This is also not suitable for high-performance applications. To get around these issues, it may be required to write a Windows network protocol driver (device driver) for the specific network protocol. This requires a Transport Driver Interface (TDI) provider and a Winsock helper DLL be written to support the network protocol. The network protocol would then be added to the Winsock catalog as a supported protocol. This allows multiple applications to open sockets for this specific protocol and the device driver can keep track of which socket receives specific packets and errors. For information on writing a network protocol provider, see the sections on TDI in the Microsoft Windows Driver Kit (WDK).

Applications also need to be aware of the impact that firewall settings may have on sending and receiving packets using raw sockets.


GeneralRe: TCP Header structure Pin
95ulisse19-Sep-10 9:08
95ulisse19-Sep-10 9:08 
GeneralRe: TCP Header structure Pin
Dave Kreskowiak19-Sep-10 9:56
mveDave Kreskowiak19-Sep-10 9:56 
QuestionPInvoke Pin
Saksida Bojan19-Sep-10 0:08
Saksida Bojan19-Sep-10 0:08 
AnswerRe: PInvoke Pin
Luc Pattyn19-Sep-10 3:23
sitebuilderLuc Pattyn19-Sep-10 3:23 
GeneralRe: PInvoke Pin
Saksida Bojan19-Sep-10 3:59
Saksida Bojan19-Sep-10 3:59 
AnswerRe: PInvoke Pin
Luc Pattyn19-Sep-10 4:16
sitebuilderLuc Pattyn19-Sep-10 4:16 
QuestionWhy i get an exception on this code ? ( code attached ) Pin
Yanshof18-Sep-10 21:53
Yanshof18-Sep-10 21:53 
AnswerRe: Why i get an exception on this code ? ( code attached ) Pin
Paul Michalik18-Sep-10 23:32
Paul Michalik18-Sep-10 23:32 
GeneralRe: Why i get an exception on this code ? ( code attached ) Pin
Yanshof18-Sep-10 23:49
Yanshof18-Sep-10 23:49 
AnswerRe: Why i get an exception on this code ? ( code attached ) Pin
Saksida Bojan19-Sep-10 1:19
Saksida Bojan19-Sep-10 1:19 
AnswerRe: Why i get an exception on this code ? ( code attached ) Pin
Manfred Rudolf Bihy19-Sep-10 22:11
professionalManfred Rudolf Bihy19-Sep-10 22:11 
Questionexcel import wizard (fixed line) Pin
eyeshield2118-Sep-10 15:16
eyeshield2118-Sep-10 15:16 
QuestionAnyone have an RDLC Example with SQL Server 2008 R2 Pin
gmhanna18-Sep-10 7:01
gmhanna18-Sep-10 7:01 
AnswerRe: Anyone have an RDLC Example with SQL Server 2008 R2 Pin
Mycroft Holmes18-Sep-10 17:16
professionalMycroft Holmes18-Sep-10 17:16 
QuestionCustom look for NumericUpDown control Pin
Mazdak18-Sep-10 1:05
Mazdak18-Sep-10 1:05 
AnswerRe: Custom look for NumericUpDown control Pin
OriginalGriff18-Sep-10 6:13
mveOriginalGriff18-Sep-10 6:13 
GeneralRe: Custom look for NumericUpDown control Pin
Mazdak18-Sep-10 6:16
Mazdak18-Sep-10 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.