-
Notifications
You must be signed in to change notification settings - Fork 0
/
Socket.xml
2675 lines (2665 loc) · 167 KB
/
Socket.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="Socket" FullName="Java.Net.Socket">
<TypeSignature Language="C#" Value="public class Socket : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.IO.ICloseable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Socket 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.Socket" />
<TypeSignature Language="F#" Value="type Socket = 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/Socket", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("java/net/Socket", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>This class implements client sockets (also called just
"sockets").</summary>
<remarks>
<para>This class implements client sockets (also called just
"sockets"). A socket is an endpoint for communication
between two machines.</para>
<para>The actual work of the socket is performed by an instance of the
<c>SocketImpl</c> class. An application, by changing
the socket factory that creates the socket implementation,
can configure itself to create sockets appropriate to the local
firewall.</para>
<para>Added in 1.0.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket" title="Reference documentation">Java documentation for <code>java.net.Socket</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 Socket ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#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>Creates an unconnected socket, with the
system-default type of SocketImpl.</summary>
<remarks>
<para>Creates an unconnected socket, with the
system-default type of SocketImpl.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket()" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket()</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" />
<altmember cref="T:Java.Net.ISocketImplFactory" />
<altmember cref="T:Java.Net.SocketImpl" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Socket (Java.Net.Proxy? proxy);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.Proxy proxy) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(Java.Net.Proxy)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : Java.Net.Proxy -> Java.Net.Socket" Usage="new Java.Net.Socket proxy" />
<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/Proxy;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/Proxy;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="proxy" Type="Java.Net.Proxy" />
</Parameters>
<Docs>
<param name="proxy">a <c>java.net.Proxy Proxy</c> object specifying what kind
of proxying should be used.</param>
<summary>Creates an unconnected socket, specifying the type of proxy, if any,
that should be used regardless of any other settings.</summary>
<remarks>
<para>Creates an unconnected socket, specifying the type of proxy, if any,
that should be used regardless of any other settings.</para>
<para>If there is a security manager, its <c>checkConnect</c> method
is called with the proxy host address and port number
as its arguments. This could result in a SecurityException.</para>
<para>Examples:
<UL> <LI><c>Socket s = new Socket(Proxy.NO_PROXY);</c> will create
a plain socket ignoring any other proxy configuration.</LI>
<LI><c>Socket s = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("socks.mydom.com", 1080)));</c>
will create a socket connecting through the specified SOCKS proxy
server.</LI>
</UL></para>
<para>Added in 1.5.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket(java.net.Proxy)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.net.Proxy)</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 argument <c>proxy</c> is <c>null</c> or of an
invalid type.</exception>
<altmember cref="T:Java.Net.ISocketImplFactory" />
<altmember cref="T:Java.Net.SocketImpl" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected Socket (Java.Net.SocketImpl? impl);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Java.Net.SocketImpl impl) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(Java.Net.SocketImpl)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : Java.Net.SocketImpl -> Java.Net.Socket" Usage="new Java.Net.Socket 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/SocketImpl;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/SocketImpl;)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="impl" Type="Java.Net.SocketImpl" />
</Parameters>
<Docs>
<param name="impl">an instance of a <B>SocketImpl</B>
the subclass wishes to use on the Socket.</param>
<summary>Creates an unconnected Socket with a user-specified
SocketImpl.</summary>
<remarks>
<para>Creates an unconnected Socket with a user-specified
SocketImpl.</para>
<para>Added in 1.1.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket(java.net.SocketImpl)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.net.SocketImpl)</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 the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Socket (Java.Net.InetAddress? address, int port);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.InetAddress address, int32 port) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(Java.Net.InetAddress,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : Java.Net.InetAddress * int -> Java.Net.Socket" Usage="new Java.Net.Socket (address, 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", "(Ljava/net/InetAddress;I)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="address" Type="Java.Net.InetAddress" />
<Parameter Name="port" Type="System.Int32" />
</Parameters>
<Docs>
<param name="address">the IP address.</param>
<param name="port">the port number.</param>
<summary>Creates a stream socket and connects it to the specified port
number at the specified IP address.</summary>
<remarks>
<para>Creates a stream socket and connects it to the specified port
number at the specified IP address.</para>
<para>If the application has specified a socket factory, that factory's
<c>createSocketImpl</c> method is called to create the
actual socket implementation. Otherwise a "plain" socket is created.</para>
<para>If there is a security manager, its
<c>checkConnect</c> method is called
with the host address and <c>port</c>
as its arguments. This could result in a SecurityException.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket(java.net.InetAddress,%20int)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(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" />
<exception cref="T:Java.IO.IOException">if an error occurs while creating the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected Socket (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.Socket.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : nativeint * Android.Runtime.JniHandleOwnership -> Java.Net.Socket" Usage="new Java.Net.Socket (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=".ctor">
<MemberSignature Language="C#" Value="public Socket (string? host, int port);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string host, int32 port) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(System.String,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : string * int -> Java.Net.Socket" Usage="new Java.Net.Socket (host, 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", "(Ljava/lang/String;I)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="host" Type="System.String" />
<Parameter Name="port" Type="System.Int32" />
</Parameters>
<Docs>
<param name="host">the host name, or <c>null</c> for the loopback address.</param>
<param name="port">the port number.</param>
<summary>Creates a stream socket and connects it to the specified port
number on the named host.</summary>
<remarks>
<para>Creates a stream socket and connects it to the specified port
number on the named host.</para>
<para>If the specified host is <c>null</c> it is the equivalent of
specifying the address as
<c>java.net.InetAddress#getByName InetAddress.getByName</c><c>(null)</c>.
In other words, it is equivalent to specifying an address of the
loopback interface.</para>
<para>If the application has specified a server socket factory, that
factory's <c>createSocketImpl</c> method is called to create
the actual socket implementation. Otherwise a "plain" socket is created.</para>
<para>If there is a security manager, its
<c>checkConnect</c> method is called
with the host address and <c>port</c>
as its arguments. This could result in a SecurityException.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket(java.lang.String,%20int)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.lang.String, 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.UnknownHostException">if the host name could not be resolved into an IP address.</exception>
<exception cref="T:Java.IO.IOException">if an error occurs while creating the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Socket (Java.Net.InetAddress? host, int port, bool stream);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.InetAddress host, int32 port, bool stream) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(Java.Net.InetAddress,System.Int32,System.Boolean)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : Java.Net.InetAddress * int * bool -> Java.Net.Socket" Usage="new Java.Net.Socket (host, port, stream)" />
<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/InetAddress;IZ)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;IZ)V", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("deprecated")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("deprecated")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="host" Type="Java.Net.InetAddress" />
<Parameter Name="port" Type="System.Int32" />
<Parameter Name="stream" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="host">the IP address.</param>
<param name="port">the port number.</param>
<param name="stream">if <c>true</c>, create a stream socket;
otherwise, create a datagram socket.</param>
<summary>Creates a socket and connects it to the specified port number at
the specified IP address.</summary>
<remarks>
<para>Creates a socket and connects it to the specified port number at
the specified IP address.</para>
<para>If the stream argument is <c>true</c>, this creates a
stream socket. If the stream argument is <c>false</c>, it
creates a datagram socket.</para>
<para>If the application has specified a server socket factory, that
factory's <c>createSocketImpl</c> method is called to create
the actual socket implementation. Otherwise a "plain" socket is created.</para>
<para>If there is a security manager, its
<c>checkConnect</c> method is called
with <c>host.getHostAddress()</c> and <c>port</c>
as its arguments. This could result in a SecurityException.</para>
<para>If UDP socket is used, TCP/IP related socket options will not apply.</para>
<para>This member is deprecated. Use DatagramSocket instead for UDP transport.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket(java.net.InetAddress,%20int,%20boolean)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.net.InetAddress, int, 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.IO.IOException">if an error occurs while creating the socket.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Socket (string? host, int port, bool stream);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string host, int32 port, bool stream) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(System.String,System.Int32,System.Boolean)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : string * int * bool -> Java.Net.Socket" Usage="new Java.Net.Socket (host, port, stream)" />
<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/lang/String;IZ)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;IZ)V", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("deprecated")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("deprecated")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="host" Type="System.String" />
<Parameter Name="port" Type="System.Int32" />
<Parameter Name="stream" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="host">the host name, or <c>null</c> for the loopback address.</param>
<param name="port">the port number.</param>
<param name="stream">a <c>boolean</c> indicating whether this is
a stream socket or a datagram socket.</param>
<summary>Creates a stream socket and connects it to the specified port
number on the named host.</summary>
<remarks>
<para>Creates a stream socket and connects it to the specified port
number on the named host.</para>
<para>If the specified host is <c>null</c> it is the equivalent of
specifying the address as
<c>java.net.InetAddress#getByName InetAddress.getByName</c><c>(null)</c>.
In other words, it is equivalent to specifying an address of the
loopback interface.</para>
<para>If the stream argument is <c>true</c>, this creates a
stream socket. If the stream argument is <c>false</c>, it
creates a datagram socket.</para>
<para>If the application has specified a server socket factory, that
factory's <c>createSocketImpl</c> method is called to create
the actual socket implementation. Otherwise a "plain" socket is created.</para>
<para>If there is a security manager, its
<c>checkConnect</c> method is called
with the host address and <c>port</c>
as its arguments. This could result in a SecurityException.</para>
<para>If a UDP socket is used, TCP/IP related socket options will not apply.</para>
<para>This member is deprecated. Use DatagramSocket instead for UDP transport.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#Socket(java.lang.String,%20int,%20boolean)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.lang.String, int, 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.UnknownHostException">if the host name could not be resolved into an IP address.</exception>
<exception cref="T:Java.IO.IOException">if an error occurs while creating the socket.</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Socket (Java.Net.InetAddress? address, int port, Java.Net.InetAddress? localAddr, int localPort);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Java.Net.InetAddress address, int32 port, class Java.Net.InetAddress localAddr, int32 localPort) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(Java.Net.InetAddress,System.Int32,Java.Net.InetAddress,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : Java.Net.InetAddress * int * Java.Net.InetAddress * int -> Java.Net.Socket" Usage="new Java.Net.Socket (address, port, localAddr, localPort)" />
<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/InetAddress;ILjava/net/InetAddress;I)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="address" Type="Java.Net.InetAddress" />
<Parameter Name="port" Type="System.Int32" />
<Parameter Name="localAddr" Type="Java.Net.InetAddress" />
<Parameter Name="localPort" Type="System.Int32" />
</Parameters>
<Docs>
<param name="address">the remote address</param>
<param name="port">the remote port</param>
<param name="localAddr">the local address the socket is bound to, or
<c>null</c> for the <c>anyLocal</c> address.</param>
<param name="localPort">the local port the socket is bound to or
<c>zero</c> for a system selected free port.</param>
<summary>Creates a socket and connects it to the specified remote address on
the specified remote port.</summary>
<remarks>
<para>Creates a socket and connects it to the specified remote address on
the specified remote port. The Socket will also bind() to the local
address and port supplied.</para>
<para>If the specified local address is <c>null</c> it is the equivalent of
specifying the address as the AnyLocal address
(see <c>java.net.InetAddress#isAnyLocalAddress InetAddress.isAnyLocalAddress</c><c>()</c>).</para>
<para>A local port number of <c>zero</c> will let the system pick up a
free port in the <c>bind</c> operation.</para>
<para>If there is a security manager, its
<c>checkConnect</c> method is called
with the host address and <c>port</c>
as its arguments. 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/Socket#Socket(java.net.InetAddress,%20int,%20java.net.InetAddress,%20int)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.net.InetAddress, int, 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" />
<exception cref="T:Java.IO.IOException">if an error occurs while creating the socket.
</exception>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Socket (string? host, int port, Java.Net.InetAddress? localAddr, int localPort);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string host, int32 port, class Java.Net.InetAddress localAddr, int32 localPort) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.#ctor(System.String,System.Int32,Java.Net.InetAddress,System.Int32)" />
<MemberSignature Language="F#" Value="new Java.Net.Socket : string * int * Java.Net.InetAddress * int -> Java.Net.Socket" Usage="new Java.Net.Socket (host, port, localAddr, localPort)" />
<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/lang/String;ILjava/net/InetAddress;I)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/net/InetAddress;I)V", "")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="host" Type="System.String" />
<Parameter Name="port" Type="System.Int32" />
<Parameter Name="localAddr" Type="Java.Net.InetAddress" />
<Parameter Name="localPort" Type="System.Int32" />
</Parameters>
<Docs>
<param name="host">the name of the remote host, or <c>null</c> for the loopback address.</param>
<param name="port">the remote port</param>
<param name="localAddr">the local address the socket is bound to, or
<c>null</c> for the <c>anyLocal</c> address.</param>
<param name="localPort">the local port the socket is bound to, or
<c>zero</c> for a system selected free port.</param>
<summary>Creates a socket and connects it to the specified remote host on
the specified remote port.</summary>
<remarks>
<para>Creates a socket and connects it to the specified remote host on
the specified remote port. The Socket will also bind() to the local
address and port supplied.</para>
<para>If the specified host is <c>null</c> it is the equivalent of
specifying the address as
<c>java.net.InetAddress#getByName InetAddress.getByName</c><c>(null)</c>.
In other words, it is equivalent to specifying an address of the
loopback interface.</para>
<para>A local port number of <c>zero</c> will let the system pick up a
free port in the <c>bind</c> operation.</para>
<para>If there is a security manager, its
<c>checkConnect</c> method is called
with the host address and <c>port</c>
as its arguments. 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/Socket#Socket(java.lang.String,%20int,%20java.net.InetAddress,%20int)" title="Reference documentation">Java documentation for <code>java.net.Socket.Socket(java.lang.String, int, 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" />
<exception cref="T:Java.Net.UnknownHostException">if the host name could not be resolved into an IP address.</exception>
<exception cref="T:Java.IO.IOException">if an error occurs while creating the socket.
</exception>
</Docs>
</Member>
<Member MemberName="Bind">
<MemberSignature Language="C#" Value="public virtual void Bind (Java.Net.SocketAddress? bindpoint);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Bind(class Java.Net.SocketAddress bindpoint) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.Bind(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="abstract member Bind : Java.Net.SocketAddress -> unit
override this.Bind : Java.Net.SocketAddress -> unit" Usage="socket.Bind bindpoint" />
<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="bindpoint" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="bindpoint">the <c>SocketAddress</c> to bind to</param>
<summary>Binds the socket to a local address.</summary>
<remarks>
<para>Binds the socket to a local address.</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/Socket#bind(java.net.SocketAddress)" title="Reference documentation">Java documentation for <code>java.net.Socket.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 given SocketAddress is invalid or not supported.</exception>
<exception cref="T:Java.IO.IOException">if the socket is already bound or an error occurs while
binding.
</exception>
</Docs>
</Member>
<Member MemberName="Channel">
<MemberSignature Language="C#" Value="public virtual Java.Nio.Channels.SocketChannel? Channel { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Nio.Channels.SocketChannel Channel" />
<MemberSignature Language="DocId" Value="P:Java.Net.Socket.Channel" />
<MemberSignature Language="F#" Value="member this.Channel : Java.Nio.Channels.SocketChannel" Usage="Java.Net.Socket.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/SocketChannel;", "GetGetChannelHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getChannel", "()Ljava/nio/channels/SocketChannel;", "GetGetChannelHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Nio.Channels.SocketChannel</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns the unique <c>java.nio.channels.SocketChannel SocketChannel</c>
object associated with this socket, if any.</summary>
<value>the socket channel associated with this socket,
or <c>null</c> if this socket was not created
for a channel</value>
<remarks>
<para>Returns the unique <c>java.nio.channels.SocketChannel SocketChannel</c>
object associated with this socket, if any.</para>
<para>A socket will have a channel if, and only if, the channel itself was
created via the <c>java.nio.channels.SocketChannel#open
SocketChannel.open</c> or <c>java.nio.channels.ServerSocketChannel#accept ServerSocketChannel.accept</c>
methods.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#getChannel()" title="Reference documentation">Java documentation for <code>java.net.Socket.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.Socket.Close" />
<MemberSignature Language="F#" Value="abstract member Close : unit -> unit
override this.Close : unit -> unit" Usage="socket.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 socket.</summary>
<remarks>
<para>Closes this socket.</para>
<para>Any thread currently blocked in an I/O operation upon this socket
will throw a <c>SocketException</c>.</para>
<para>Once a socket has been closed, it is not available for further networking
use (i.e. can't be reconnected or rebound). A new socket needs to be
created.</para>
<para>Closing this socket will also close the socket's
<c>java.io.InputStream InputStream</c> and
<c>java.io.OutputStream OutputStream</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/Socket#close()" title="Reference documentation">Java documentation for <code>java.net.Socket.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" />
<exception cref="T:Java.IO.IOException">if an error occurs while closing the socket.
</exception>
</Docs>
</Member>
<Member MemberName="Connect">
<MemberSignature Language="C#" Value="public virtual void Connect (Java.Net.SocketAddress? endpoint);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Connect(class Java.Net.SocketAddress endpoint) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.Connect(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="abstract member Connect : Java.Net.SocketAddress -> unit
override this.Connect : Java.Net.SocketAddress -> unit" Usage="socket.Connect endpoint" />
<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="endpoint" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="endpoint">the <c>SocketAddress</c></param>
<summary>Connects this socket to the server.</summary>
<remarks>
<para>Connects this socket to the server.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#connect(java.net.SocketAddress)" title="Reference documentation">Java documentation for <code>java.net.Socket.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.Lang.IllegalArgumentException">if the given SocketAddress is invalid or not supported.</exception>
<exception cref="T:Java.IO.IOException">if the socket is already connected or an error occurs while
connecting.
</exception>
</Docs>
</Member>
<Member MemberName="Connect">
<MemberSignature Language="C#" Value="public virtual void Connect (Java.Net.SocketAddress? endpoint, int timeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Connect(class Java.Net.SocketAddress endpoint, int32 timeout) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.Connect(Java.Net.SocketAddress,System.Int32)" />
<MemberSignature Language="F#" Value="abstract member Connect : Java.Net.SocketAddress * int -> unit
override this.Connect : Java.Net.SocketAddress * int -> unit" Usage="socket.Connect (endpoint, timeout)" />
<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;I)V", "GetConnect_Ljava_net_SocketAddress_IHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("connect", "(Ljava/net/SocketAddress;I)V", "GetConnect_Ljava_net_SocketAddress_IHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="endpoint" Type="Java.Net.SocketAddress" />
<Parameter Name="timeout" Type="System.Int32" />
</Parameters>
<Docs>
<param name="endpoint">the <c>SocketAddress</c></param>
<param name="timeout">the timeout value to be used in milliseconds.</param>
<summary>Connects this socket to the server with a specified timeout value.</summary>
<remarks>
<para>Connects this socket to the server with a specified timeout value.
A timeout of zero is interpreted as an infinite timeout. The connection
will then block until established or an error occurs.</para>
<para>Added in 1.4.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/java/net/Socket#connect(java.net.SocketAddress,%20int)" title="Reference documentation">Java documentation for <code>java.net.Socket.connect(java.net.SocketAddress, 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.Lang.IllegalArgumentException">if the given SocketAddress is invalid or not supported or the
timeout value is negative.</exception>
<exception cref="T:Java.IO.IOException">if the socket is already connected or an error occurs while
connecting.
</exception>
</Docs>
</Member>
<Member MemberName="ConnectAsync">
<MemberSignature Language="C#" Value="public System.Threading.Tasks.Task ConnectAsync (Java.Net.SocketAddress? endpoint);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ConnectAsync(class Java.Net.SocketAddress endpoint) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.ConnectAsync(Java.Net.SocketAddress)" />
<MemberSignature Language="F#" Value="member this.ConnectAsync : Java.Net.SocketAddress -> System.Threading.Tasks.Task" Usage="socket.ConnectAsync endpoint" />
<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="endpoint" Type="Java.Net.SocketAddress" />
</Parameters>
<Docs>
<param name="endpoint">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.SocketAddress? endpoint, int timeout);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance class System.Threading.Tasks.Task ConnectAsync(class Java.Net.SocketAddress endpoint, int32 timeout) cil managed" />
<MemberSignature Language="DocId" Value="M:Java.Net.Socket.ConnectAsync(Java.Net.SocketAddress,System.Int32)" />
<MemberSignature Language="F#" Value="member this.ConnectAsync : Java.Net.SocketAddress * int -> System.Threading.Tasks.Task" Usage="socket.ConnectAsync (endpoint, timeout)" />
<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="endpoint" Type="Java.Net.SocketAddress" />
<Parameter Name="timeout" Type="System.Int32" />
</Parameters>
<Docs>
<param name="endpoint">To be added.</param>
<param name="timeout">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="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.Socket.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="socket.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/Socket#getOption(java.net.SocketOption%3CT%3E)" title="Reference documentation">Java documentation for <code>java.net.Socket.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.Socket.InetAddress" />
<MemberSignature Language="F#" Value="member this.InetAddress : Java.Net.InetAddress" Usage="Java.Net.Socket.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 the socket is connected.</summary>
<value>the remote IP address to which this socket is connected,
or <c>null</c> if the socket is not connected.</value>
<remarks>
<para>Returns the address to which the socket is 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/Socket#getInetAddress()" title="Reference documentation">Java documentation for <code>java.net.Socket.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="InputStream">
<MemberSignature Language="C#" Value="public virtual System.IO.Stream? InputStream { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.IO.Stream InputStream" />
<MemberSignature Language="DocId" Value="P:Java.Net.Socket.InputStream" />
<MemberSignature Language="F#" Value="member this.InputStream : System.IO.Stream" Usage="Java.Net.Socket.InputStream" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getInputStream", "()Ljava/io/InputStream;", "GetGetInputStreamHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getInputStream", "()Ljava/io/InputStream;", "GetGetInputStreamHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.IO.Stream</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns an input stream for this socket.</summary>
<value>an input stream for reading bytes from this socket.</value>
<remarks>
<para>Returns an input stream for this socket.</para>
<para>If this socket has an associated channel then the resulting input
stream delegates all of its operations to the channel. If the channel