Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateDatagram()

void System.Net.Sockets.UdpClient.ValidateDatagram ( byte[] datagram,
int bytes,
IPEndPoint endPoint )
inlineprivate

Definition at line 256 of file UdpClient.cs.

257 {
259 if (datagram == null)
260 {
261 throw new ArgumentNullException("datagram");
262 }
263 if (bytes > datagram.Length || bytes < 0)
264 {
265 throw new ArgumentOutOfRangeException("bytes");
266 }
267 if (_active && endPoint != null)
268 {
270 }
271 }
static string net_udpconnected
Definition SR.cs:30
Definition SR.cs:7

References System.Net.Sockets.UdpClient._active, System.bytes, System.SR.net_udpconnected, and System.Net.Sockets.UdpClient.ThrowIfDisposed().

Referenced by System.Net.Sockets.UdpClient.BeginSend(), and System.Net.Sockets.UdpClient.SendAsync().