This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
DatagramSocket.xml
1957 lines (1956 loc) · 124 KB
/
DatagramSocket.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="DatagramSocket" FullName="Java.Net.DatagramSocket">
<TypeSignature Language="C#" Value="public class DatagramSocket : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ICloseable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit DatagramSocket extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.IO.ICloseable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Java.Net.DatagramSocket" />
<TypeSignature Language="F#" Value="type DatagramSocket = class
 inherit Object
 interface ICloseable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.IO.ICloseable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("java/net/DatagramSocket", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/net/DatagramSocket", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>This class represents a socket for sending and receiving datagram packets.</summary>
<remarks>
<para>This class represents a socket for sending and receiving datagram packets.</para>
<para>A datagram socket is the sending or receiving point for a packet
delivery service. Each packet sent or received on a datagram socket
is individually addressed and routed. Multiple packets sent from
one machine to another may be routed differently, and may arrive in
any order.</para>
<para>Where possible, a newly constructed <c>DatagramSocket</c> has the
<c>SocketOptions#SO_BROADCAST SO_BROADCAST</c> socket option enabled so as
to allow the transmission of broadcast datagrams. In order to receive
broadcast packets a DatagramSocket should be bound to the wildcard address.
In some implementations, broadcast packets may also be received when
a DatagramSocket is bound to a more specific address.</para>
<para>Example:
<c>DatagramSocket s = new DatagramSocket(null);
s.bind(new InetSocketAddress(8888));</c>
Which is equivalent to:
<c>DatagramSocket s = new DatagramSocket(8888);</c>
Both cases will create a DatagramSocket able to receive broadcasts on
UDP port 8888.</para>
<para>Added in JDK1.0.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DatagramSocket ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "()V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "()V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Constructs a datagram socket and binds it to any available port
on the local host machine.</summary>
<remarks>
<para>Constructs a datagram socket and binds it to any available port
on the local host machine. The socket will be bound to the
<c>InetAddress#isAnyLocalAddress wildcard</c> address,
an IP address chosen by the kernel.</para>
<para>If there is a security manager,
its <c>checkListen</c> method is first called
with 0 as its argument to ensure the operation is allowed.
This could result in a SecurityException.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#DatagramSocket()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.DatagramSocket()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Net.SocketException">if an error occurs while creating or binding the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected DatagramSocket (Java.Net.DatagramSocketImpl? impl);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Java.Net.DatagramSocketImpl impl) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.#ctor(Java.Net.DatagramSocketImpl)" />
<MemberSignature Language="F#" Value="new Java.Net.DatagramSocket : Java.Net.DatagramSocketImpl -> Java.Net.DatagramSocket" Usage="new Java.Net.DatagramSocket impl" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/net/DatagramSocketImpl;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/DatagramSocketImpl;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="impl" Type="Java.Net.DatagramSocketImpl" />
</Parameters>
<Docs>
<param name="impl">an instance of a <B>DatagramSocketImpl</B>
the subclass wishes to use on the DatagramSocket.</param>
<summary>Creates an unbound datagram socket with the specified
DatagramSocketImpl.</summary>
<remarks>
<para>Creates an unbound datagram socket with the specified
DatagramSocketImpl.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#DatagramSocket(java.net.DatagramSocketImpl)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.DatagramSocket(java.net.DatagramSocketImpl)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DatagramSocket (Java.Net.SocketAddress? bindaddr);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.SocketAddress bindaddr) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.#ctor(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="new Java.Net.DatagramSocket : Java.Net.SocketAddress -> Java.Net.DatagramSocket" Usage="new Java.Net.DatagramSocket bindaddr" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Ljava/net/SocketAddress;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/SocketAddress;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="bindaddr" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="bindaddr">local socket address to bind, or <c>null</c>
for an unbound socket.</param>
<summary>Creates a datagram socket, bound to the specified local
socket address.</summary>
<remarks>
<para>Creates a datagram socket, bound to the specified local
socket address.</para>
<para>If, if the address is <c>null</c>, creates an unbound socket.</para>
<para>If there is a security manager,
its <c>checkListen</c> method is first called
with the port from the socket address
as its argument to ensure the operation is allowed.
This could result in a SecurityException.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#DatagramSocket(java.net.SocketAddress)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.DatagramSocket(java.net.SocketAddress)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalArgumentException">if the SocketAddress is not supported</exception>
<exception cref="T:Java.Net.SocketException">if a problem occurs creating or binding the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DatagramSocket (int port);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 port) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.#ctor(System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Net.DatagramSocket : int -> Java.Net.DatagramSocket" Usage="new Java.Net.DatagramSocket port" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(I)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="port" Type="System.Int32" />
</Parameters>
<Docs>
<param name="port">port to use.</param>
<summary>Constructs a datagram socket and binds it to the specified port
on the local host machine.</summary>
<remarks>
<para>Constructs a datagram socket and binds it to the specified port
on the local host machine. The socket will be bound to the
<c>InetAddress#isAnyLocalAddress wildcard</c> address,
an IP address chosen by the kernel.</para>
<para>If there is a security manager,
its <c>checkListen</c> method is first called
with the <c>port</c> argument
as its argument to ensure the operation is allowed.
This could result in a SecurityException.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#DatagramSocket(int)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.DatagramSocket(int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Net.SocketException">if an error occurs while creating or binding the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public DatagramSocket (int port, Java.Net.InetAddress? laddr);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 port, class Java.Net.InetAddress laddr) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.#ctor(System.Int32,Java.Net.InetAddress)" />
<MemberSignature Language="F#" Value="new Java.Net.DatagramSocket : int * Java.Net.InetAddress -> Java.Net.DatagramSocket" Usage="new Java.Net.DatagramSocket (port, laddr)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(ILjava/net/InetAddress;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(ILjava/net/InetAddress;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="port" Type="System.Int32" />
<Parameter Name="laddr" Type="Java.Net.InetAddress" />
</Parameters>
<Docs>
<param name="port">local port to use</param>
<param name="laddr">local address to bind</param>
<summary>Creates a datagram socket, bound to the specified local
address.</summary>
<remarks>
<para>Creates a datagram socket, bound to the specified local
address. The local port must be between 0 and 65535 inclusive.
If the IP address is 0.0.0.0, the socket will be bound to the
<c>InetAddress#isAnyLocalAddress wildcard</c> address,
an IP address chosen by the kernel.</para>
<para>If there is a security manager,
its <c>checkListen</c> method is first called
with the <c>port</c> argument
as its argument to ensure the operation is allowed.
This could result in a SecurityException.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#DatagramSocket(int,%20java.net.InetAddress)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.DatagramSocket(int, java.net.InetAddress)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Net.SocketException">if an error occurs while creating or binding the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected DatagramSocket (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.Net.DatagramSocket : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.DatagramSocket" Usage="new Java.Net.DatagramSocket (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Bind">
<MemberSignature Language="C#" Value="public virtual void Bind (Java.Net.SocketAddress? addr);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Bind(class Java.Net.SocketAddress addr) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.Bind(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="abstract member Bind : Java.Net.SocketAddress -> unit
override this.Bind : Java.Net.SocketAddress -> unit" Usage="datagramSocket.Bind addr" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("bind", "(Ljava/net/SocketAddress;)V", "GetBind_Ljava_net_SocketAddress_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("bind", "(Ljava/net/SocketAddress;)V", "GetBind_Ljava_net_SocketAddress_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="addr" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="addr">The address and port to bind to.</param>
<summary>Binds this DatagramSocket to a specific address and port.</summary>
<remarks>
<para>Binds this DatagramSocket to a specific address and port.</para>
<para>If the address is <c>null</c>, then the system will pick up
an ephemeral port and a valid local address to bind the socket.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#bind(java.net.SocketAddress)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.bind(java.net.SocketAddress)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Lang.IllegalArgumentException">if the SocketAddress is not supported</exception>
<exception cref="T:Java.Net.SocketException">if the socket is already bound or a problem occurs during
binding.
</exception>
</Docs>
</Member>
<Member MemberName="Broadcast">
<MemberSignature Language="C#" Value="public virtual bool Broadcast { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Broadcast" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.Broadcast" />
<MemberSignature Language="F#" Value="member this.Broadcast : bool with get, set" Usage="Java.Net.DatagramSocket.Broadcast" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getBroadcast", "()Z", "GetGetBroadcastHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getBroadcast", "()Z", "GetGetBroadcastHandler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: Android.Runtime.Register("setBroadcast", "(Z)V", "GetSetBroadcast_ZHandler")]</AttributeName>
<AttributeName Language="F#">[<set: Android.Runtime.Register("setBroadcast", "(Z)V", "GetSetBroadcast_ZHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<param name="on">whether or not to have broadcast turned on.</param>
<summary>Tests if SO_BROADCAST is enabled. -or- Enable/disable SO_BROADCAST.</summary>
<value>a <c>boolean</c> indicating whether or not SO_BROADCAST is enabled.</value>
<remarks>
<para>Property getter documentation:</para>
<para>Tests if SO_BROADCAST is enabled.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#getBroadcast()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.getBroadcast()</code>.</a>
</format>
</para>
<para>Property setter documentation:</para>
<para>Enable/disable SO_BROADCAST.</para>
<para>Some operating systems may require that the Java virtual machine be
started with implementation specific privileges to enable this option or
send broadcast datagrams.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#setBroadcast(boolean)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.setBroadcast(boolean)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Net.SocketException">if the socket is closed or the option is invalid.
</exception>
<exception cref="T:Java.Net.SocketException">if the socket is closed or the option could not be set.
</exception>
</Docs>
</Member>
<Member MemberName="Channel">
<MemberSignature Language="C#" Value="public virtual Java.Nio.Channels.DatagramChannel? Channel { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Nio.Channels.DatagramChannel Channel" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.Channel" />
<MemberSignature Language="F#" Value="member this.Channel : Java.Nio.Channels.DatagramChannel" Usage="Java.Net.DatagramSocket.Channel" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getChannel", "()Ljava/nio/channels/DatagramChannel;", "GetGetChannelHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getChannel", "()Ljava/nio/channels/DatagramChannel;", "GetGetChannelHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Channels.DatagramChannel</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the unique <c>java.nio.channels.DatagramChannel</c> object
associated with this datagram socket, if any.</summary>
<value>the datagram channel associated with this datagram socket,
or <c>null</c> if this socket was not created for a channel</value>
<remarks>
<para>Returns the unique <c>java.nio.channels.DatagramChannel</c> object
associated with this datagram socket, if any.</para>
<para>A datagram socket will have a channel if, and only if, the channel
itself was created via the <c>java.nio.channels.DatagramChannel#open
DatagramChannel.open</c> method.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#getChannel()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.getChannel()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Close">
<MemberSignature Language="C#" Value="public virtual void Close ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Close() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.Close" />
<MemberSignature Language="F#" Value="abstract member Close : unit -> unit
override this.Close : unit -> unit" Usage="datagramSocket.Close " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.IO.ICloseable.Close</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("close", "()V", "GetCloseHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("close", "()V", "GetCloseHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Closes this datagram socket.</summary>
<remarks>
<para>Closes this datagram socket.</para>
<para>Any thread currently blocked in <c>#receive</c> upon this socket
will throw a <c>SocketException</c>.</para>
<para>If this socket has an associated channel then the channel is closed
as well.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#close()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.close()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="Connect">
<MemberSignature Language="C#" Value="public virtual void Connect (Java.Net.SocketAddress? addr);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Connect(class Java.Net.SocketAddress addr) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.Connect(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="abstract member Connect : Java.Net.SocketAddress -> unit
override this.Connect : Java.Net.SocketAddress -> unit" Usage="datagramSocket.Connect addr" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("connect", "(Ljava/net/SocketAddress;)V", "GetConnect_Ljava_net_SocketAddress_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("connect", "(Ljava/net/SocketAddress;)V", "GetConnect_Ljava_net_SocketAddress_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="addr" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="addr">The remote address.</param>
<summary>Connects this socket to a remote socket address (IP address + port number).</summary>
<remarks>
<para>Connects this socket to a remote socket address (IP address + port number).</para>
<para>If given an <c>InetSocketAddress InetSocketAddress</c>, this method
behaves as if invoking <c>#connect(InetAddress,int) connect(InetAddress,int)</c>
with the given socket addresses IP address and port number.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#connect(java.net.SocketAddress)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.connect(java.net.SocketAddress)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<exception cref="T:Java.Net.SocketException">if an error occurs.
</exception>
</Docs>
</Member>
<Member MemberName="Connect">
<MemberSignature Language="C#" Value="public virtual void Connect (Java.Net.InetAddress? address, int port);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Connect(class Java.Net.InetAddress address, int32 port) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.Connect(Java.Net.InetAddress,System.Int32)" />
<MemberSignature Language="F#" Value="abstract member Connect : Java.Net.InetAddress * int -> unit
override this.Connect : Java.Net.InetAddress * int -> unit" Usage="datagramSocket.Connect (address, port)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("connect", "(Ljava/net/InetAddress;I)V", "GetConnect_Ljava_net_InetAddress_IHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("connect", "(Ljava/net/InetAddress;I)V", "GetConnect_Ljava_net_InetAddress_IHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="Java.Net.InetAddress" />
<Parameter Name="port" Type="System.Int32" />
</Parameters>
<Docs>
<param name="address">the remote address for the socket</param>
<param name="port">the remote port for the socket.</param>
<summary>Connects the socket to a remote address for this socket.</summary>
<remarks>
<para>Connects the socket to a remote address for this socket. When a
socket is connected to a remote address, packets may only be
sent to or received from that address. By default a datagram
socket is not connected.</para>
<para>If the remote destination to which the socket is connected does not
exist, or is otherwise unreachable, and if an ICMP destination unreachable
packet has been received for that address, then a subsequent call to
send or receive may throw a PortUnreachableException. Note, there is no
guarantee that the exception will be thrown.</para>
<para>If a security manager has been installed then it is invoked to check
access to the remote address. Specifically, if the given <c>address</c>
is a <c>InetAddress#isMulticastAddress multicast address</c>,
the security manager's <c>java.lang.SecurityManager#checkMulticast(InetAddress)
checkMulticast</c> method is invoked with the given <c>address</c>.
Otherwise, the security manager's <c>java.lang.SecurityManager#checkConnect(String,int) checkConnect</c>
and <c>java.lang.SecurityManager#checkAccept checkAccept</c> methods
are invoked, with the given <c>address</c> and <c>port</c>, to
verify that datagrams are permitted to be sent and received
respectively.</para>
<para>When a socket is connected, <c>#receive receive</c> and
<c>#send send</c><b>will not perform any security checks</b>
on incoming and outgoing packets, other than matching the packet's
and the socket's address and port. On a send operation, if the
packet's address is set and the packet's address and the socket's
address do not match, an <c>IllegalArgumentException</c> will be
thrown. A socket connected to a multicast address may only be used
to send packets.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#connect(java.net.InetAddress,%20int)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.connect(java.net.InetAddress, int)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="ConnectAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ConnectAsync (Java.Net.SocketAddress? addr);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ConnectAsync(class Java.Net.SocketAddress addr) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.ConnectAsync(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="member this.ConnectAsync : Java.Net.SocketAddress -> System.Threading.Tasks.Task" Usage="datagramSocket.ConnectAsync addr" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="addr" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="addr">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ConnectAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ConnectAsync (Java.Net.InetAddress? address, int port);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ConnectAsync(class Java.Net.InetAddress address, int32 port) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.ConnectAsync(Java.Net.InetAddress,System.Int32)" />
<MemberSignature Language="F#" Value="member this.ConnectAsync : Java.Net.InetAddress * int -> System.Threading.Tasks.Task" Usage="datagramSocket.ConnectAsync (address, port)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="address" Type="Java.Net.InetAddress" />
<Parameter Name="port" Type="System.Int32" />
</Parameters>
<Docs>
<param name="address">To be added.</param>
<param name="port">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Disconnect">
<MemberSignature Language="C#" Value="public virtual void Disconnect ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Disconnect() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.Disconnect" />
<MemberSignature Language="F#" Value="abstract member Disconnect : unit -> unit
override this.Disconnect : unit -> unit" Usage="datagramSocket.Disconnect " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("disconnect", "()V", "GetDisconnectHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("disconnect", "()V", "GetDisconnectHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Disconnects the socket.</summary>
<remarks>
<para>Disconnects the socket. If the socket is closed or not connected,
then this method has no effect.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#disconnect()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.disconnect()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="GetOption">
<MemberSignature Language="C#" Value="public virtual Java.Lang.Object? GetOption (Java.Net.ISocketOption? name);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Lang.Object GetOption(class Java.Net.ISocketOption name) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.DatagramSocket.GetOption(Java.Net.ISocketOption)" />
<MemberSignature Language="F#" Value="abstract member GetOption : Java.Net.ISocketOption -> Java.Lang.Object
override this.GetOption : Java.Net.ISocketOption -> Java.Lang.Object" Usage="datagramSocket.GetOption name" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getOption", "(Ljava/net/SocketOption;)Ljava/lang/Object;", "GetGetOption_Ljava_net_SocketOption_Handler", ApiSince=33)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getOption", "(Ljava/net/SocketOption;)Ljava/lang/Object;", "GetGetOption_Ljava_net_SocketOption_Handler", ApiSince=33)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android33.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android33.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="Java.Net.ISocketOption" />
</Parameters>
<Docs>
<param name="<T><T>">The type of the socket option value</param>
<param name="name">The socket option</param>
<summary>Returns the value of a socket option.</summary>
<returns>The value of the socket option.</returns>
<remarks>
<para>Returns the value of a socket option.</para>
<para>Added in 9.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#getOption(java.net.SocketOption%3CT%3E)" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.getOption(java.net.SocketOption<T>)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="InetAddress">
<MemberSignature Language="C#" Value="public virtual Java.Net.InetAddress? InetAddress { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Net.InetAddress InetAddress" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.InetAddress" />
<MemberSignature Language="F#" Value="member this.InetAddress : Java.Net.InetAddress" Usage="Java.Net.DatagramSocket.InetAddress" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getInetAddress", "()Ljava/net/InetAddress;", "GetGetInetAddressHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getInetAddress", "()Ljava/net/InetAddress;", "GetGetInetAddressHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Net.InetAddress</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the address to which this socket is connected.</summary>
<value>the address to which this socket is connected.</value>
<remarks>
<para>Returns the address to which this socket is connected. Returns
<c>null</c> if the socket is not connected.</para>
<para>If the socket was connected prior to being <c>#close closed</c>,
then this method will continue to return the connected address
after the socket is closed.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#getInetAddress()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.getInetAddress()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="IsBound">
<MemberSignature Language="C#" Value="public virtual bool IsBound { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsBound" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.IsBound" />
<MemberSignature Language="F#" Value="member this.IsBound : bool" Usage="Java.Net.DatagramSocket.IsBound" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isBound", "()Z", "GetIsBoundHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isBound", "()Z", "GetIsBoundHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the binding state of the socket.</summary>
<value>true if the socket successfully bound to an address</value>
<remarks>
<para>Returns the binding state of the socket.</para>
<para>If the socket was bound prior to being <c>#close closed</c>,
then this method will continue to return <c>true</c>
after the socket is closed.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#isBound()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.isBound()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="IsClosed">
<MemberSignature Language="C#" Value="public virtual bool IsClosed { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsClosed" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.IsClosed" />
<MemberSignature Language="F#" Value="member this.IsClosed : bool" Usage="Java.Net.DatagramSocket.IsClosed" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isClosed", "()Z", "GetIsClosedHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isClosed", "()Z", "GetIsClosedHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns whether the socket is closed or not.</summary>
<value>true if the socket has been closed</value>
<remarks>
<para>Returns whether the socket is closed or not.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#isClosed()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.isClosed()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="IsConnected">
<MemberSignature Language="C#" Value="public virtual bool IsConnected { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsConnected" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.IsConnected" />
<MemberSignature Language="F#" Value="member this.IsConnected : bool" Usage="Java.Net.DatagramSocket.IsConnected" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isConnected", "()Z", "GetIsConnectedHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isConnected", "()Z", "GetIsConnectedHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the connection state of the socket.</summary>
<value>true if the socket successfully connected to a server</value>
<remarks>
<para>Returns the connection state of the socket.</para>
<para>If the socket was connected prior to being <c>#close closed</c>,
then this method will continue to return <c>true</c>
after the socket is closed.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/DatagramSocket#isConnected()" title="Reference documentation">Java documentation for <code>java.net.DatagramSocket.isConnected()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Java.Net.DatagramSocket.JniPeerMembers" />
<MemberType>Property</MemberType>
<Implements>
<InterfaceMember>P:Java.Interop.IJavaPeerable.JniPeerMembers</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="LocalAddress">
<MemberSignature Language="C#" Value="public virtual Java.Net.InetAddress? LocalAddress { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Net.InetAddress LocalAddress" />
<MemberSignature Language="DocId" Value="P:Java.Net.DatagramSocket.LocalAddress" />
<MemberSignature Language="F#" Value="member this.LocalAddress : Java.Net.InetAddress" Usage="Java.Net.DatagramSocket.LocalAddress" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getLocalAddress", "()Ljava/net/InetAddress;", "GetGetLocalAddressHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getLocalAddress", "()Ljava/net/InetAddress;", "GetGetLocalAddressHandler")>]</AttributeName>