S
S
Stepan Gervik2019-01-28 17:27:17
C++ / C#
Stepan Gervik, 2019-01-28 17:27:17

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

2 answer(s)
V
VoidVolker, 2019-01-28
@VoidVolker

From the point of view of the code - just like in any other programming language: just a call to the system API.
Server:

  1. Create socket
    Customer:
    Or just use any wrapper library for the sake of convenience.

S
shai_hulud, 2019-01-28
@shai_hulud

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 question

Ask a Question

731 491 924 answers to any question