5 writes to _clientSocket
System.Net.Sockets (5)
System\Net\Sockets\UDPClient.cs (5)
125
_clientSocket
= value;
241
_clientSocket
= null!;
663
_clientSocket
= new Socket(_family, SocketType.Dgram, ProtocolType.Udp);
735
_clientSocket
= ipv4Socket;
741
_clientSocket
= ipv6Socket;
41 references to _clientSocket
System.Net.Sockets (41)
System\Net\Sockets\UDPClient.cs (41)
78
_clientSocket
.Bind(localEP);
93
_clientSocket
.Bind(localEP);
113
return
_clientSocket
.Available;
121
return
_clientSocket
;
133
return
_clientSocket
.Ttl;
137
_clientSocket
.Ttl = value;
145
return
_clientSocket
.DontFragment;
149
_clientSocket
.DontFragment = value;
157
return
_clientSocket
.MulticastLoopback;
161
_clientSocket
.MulticastLoopback = value;
169
return
_clientSocket
.EnableBroadcast;
173
_clientSocket
.EnableBroadcast = value;
181
return
_clientSocket
.ExclusiveAddressUse;
185
_clientSocket
.ExclusiveAddressUse = value;
192
_clientSocket
.SetIPProtectionLevel(allowed ? IPProtectionLevel.Unrestricted : IPProtectionLevel.EdgeRestricted);
207
return _family == AddressFamily.InterNetworkV6 &&
_clientSocket
.DualMode;
233
Socket chkClientSocket =
_clientSocket
;
257
if (
_clientSocket
!= null && !_isBroadcast && IsBroadcast(ipAddress))
262
_clientSocket
.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1);
293
return
_clientSocket
.BeginSend(datagram, 0, bytes, SocketFlags.None, requestCallback, state);
298
return
_clientSocket
.BeginSendTo(datagram, 0, bytes, SocketFlags.None, endPoint, requestCallback, state);
309
_clientSocket
.EndSend(asyncResult) :
310
_clientSocket
.EndSendTo(asyncResult);
372
return
_clientSocket
.BeginReceiveFrom(_buffer, 0, MaxUDPSize, SocketFlags.None, ref tempRemoteEP, requestCallback, state);
385
int received =
_clientSocket
.EndReceiveFrom(asyncResult, ref tempRemoteEP);
407
_clientSocket
.SetSocketOption(
414
_clientSocket
.SetSocketOption(
430
_clientSocket
.SetSocketOption(
450
_clientSocket
.SetSocketOption(
471
_clientSocket
.SetSocketOption(
491
_clientSocket
.SetSocketOption(
498
_clientSocket
.SetSocketOption(
518
_clientSocket
.SetSocketOption(
573
return
_clientSocket
.SendAsync(new ArraySegment<byte>(datagram, 0, bytes), SocketFlags.None);
578
return
_clientSocket
.SendToAsync(new ArraySegment<byte>(datagram, 0, bytes), SocketFlags.None, endPoint);
604
return
_clientSocket
.SendAsync(datagram, SocketFlags.None, cancellationToken);
612
return
_clientSocket
.SendToAsync(datagram, SocketFlags.None, endPoint, cancellationToken);
619
return WaitAndWrap(
_clientSocket
.ReceiveFromAsync(
645
return WaitAndWrap(
_clientSocket
.ReceiveFromAsync(
710
if (
_clientSocket
== null)
727
if (
_clientSocket
== null)