About C # UDP Sockets

  • I have to connect to an external server using UDP sockets in C # ..
  • I could not understand these 2 lines in the server usage notes:

"Using special sockets is in progress."

and

"If the server loses UDP communication with the client, it will ..."

I thought a UDP socket was connectionless! So what does “lose touch” mean? and how to avoid it? Is there a known way to provide “dedicated sockets”?

thank

+3
source share
2 answers

"Using dedicated execution sockets."

, .

EDIT: , .

UDP , , . ().

, , . IP- , . , , , .

" UDP ..."

UPD, . - , , ?

EDIT2: , , .

, UDP SocketException SocketError.ConnectionReset . UDP connect/disconnect, , ''.

+3

- :

  • , , , . " "

  • , IP- , , .

1 -. IPEndpoint " ".

2 - , IP...

3 - " ", , . ( ref remoteEP Socket.ReceiveFrom())

4 - , : + 1 (? - ?)

5 - ,

0

Source: https://habr.com/ru/post/1743812/


All Articles