Answer the question
In order to leave comments, you need to log in
How to use sockets in C#?
Good afternoon!
And so, the question itself: how in C # can you organize the sending of the so-called Raw Sockets?
This is interesting from the point of view of the code, not the algorithm
Answer the question
In order to leave comments, you need to log in
From the point of view of the code - just like in any other programming language: just a call to the system API.
Server:
Here is an example project with raw ip sockets.
https://www.codeproject.com/Articles/17031/A-Netwo...
Here is the method by which data is sent to the Socket:
https://docs.microsoft.com/en-us/dotnet/api/system...
Here is the method by which data is received from the Socket:
https://docs.microsoft.com/en-us/dotnet/api/system... It
is organized as follows:
1) A socket is created / opened
2) Data is sent / Data is received
3) The socket is closed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question