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

◆ Send() [2/6]

int System.Net.Sockets.UdpClient.Send ( byte[] dgram,
int bytes,
IPEndPoint? endPoint )
inline

Definition at line 655 of file UdpClient.cs.

656 {
658 if (dgram == null)
659 {
660 throw new ArgumentNullException("dgram");
661 }
662 if (_active && endPoint != null)
663 {
665 }
666 if (endPoint == null)
667 {
668 return Client.Send(dgram, 0, bytes, SocketFlags.None);
669 }
670 CheckForBroadcast(endPoint.Address);
671 return Client.SendTo(dgram, 0, bytes, SocketFlags.None, endPoint);
672 }
void CheckForBroadcast(IPAddress ipAddress)
Definition UdpClient.cs:207
static string net_udpconnected
Definition SR.cs:30
Definition SR.cs:7

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