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

◆ Send() [5/6]

int System.Net.Sockets.UdpClient.Send ( ReadOnlySpan< byte > datagram,
IPEndPoint? endPoint )
inline

Definition at line 674 of file UdpClient.cs.

675 {
677 if (_active && endPoint != null)
678 {
680 }
681 if (endPoint == null)
682 {
683 return Client.Send(datagram, SocketFlags.None);
684 }
685 CheckForBroadcast(endPoint.Address);
686 return Client.SendTo(datagram, SocketFlags.None, endPoint);
687 }
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.Net.Sockets.UdpClient.CheckForBroadcast(), System.SR.net_udpconnected, and System.Net.Sockets.UdpClient.ThrowIfDisposed().