/Generated/v4.3/Java.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 1346 lines · 525 code · 114 blank · 707 comment · 0 complexity · e0f5fc32221c1e2c3280f1d0cc62e505 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Java.Net.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Java.Net
  18. {
  19. /// <summary>
  20. /// <para>If a HTTP request has to be retried, this exception will be thrown if the request cannot be retried automatically. </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// java/net/HttpRetryException
  24. /// </java-name>
  25. [Dot42.DexImport("java/net/HttpRetryException", AccessFlags = 33)]
  26. public partial class HttpRetryException : global::System.IO.IOException
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Creates a new <c> HttpRetryException </c> instance with the specified response code and the given detail message.</para><para></para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "(Ljava/lang/String;I)V", AccessFlags = 1)]
  33. public HttpRetryException(string detail, int code) /* MethodBuilder.Create */
  34. {
  35. }
  36. /// <summary>
  37. /// <para>Creates a new <c> HttpRetryException </c> instance with the specified response code, the given detail message and the value of the location field from the response header.</para><para></para>
  38. /// </summary>
  39. [Dot42.DexImport("<init>", "(Ljava/lang/String;ILjava/lang/String;)V", AccessFlags = 1)]
  40. public HttpRetryException(string detail, int code, string location) /* MethodBuilder.Create */
  41. {
  42. }
  43. /// <summary>
  44. /// <para>Gets the location value.</para><para></para>
  45. /// </summary>
  46. /// <returns>
  47. /// <para>the stored location from the HTTP header. </para>
  48. /// </returns>
  49. /// <java-name>
  50. /// getLocation
  51. /// </java-name>
  52. [Dot42.DexImport("getLocation", "()Ljava/lang/String;", AccessFlags = 1)]
  53. public virtual string GetLocation() /* MethodBuilder.Create */
  54. {
  55. return default(string);
  56. }
  57. /// <summary>
  58. /// <para>Gets the detail message.</para><para></para>
  59. /// </summary>
  60. /// <returns>
  61. /// <para>the detail message. </para>
  62. /// </returns>
  63. /// <java-name>
  64. /// getReason
  65. /// </java-name>
  66. [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
  67. public virtual string GetReason() /* MethodBuilder.Create */
  68. {
  69. return default(string);
  70. }
  71. /// <summary>
  72. /// <para>Gets the response code.</para><para></para>
  73. /// </summary>
  74. /// <returns>
  75. /// <para>the HTTP response code. </para>
  76. /// </returns>
  77. /// <java-name>
  78. /// responseCode
  79. /// </java-name>
  80. [Dot42.DexImport("responseCode", "()I", AccessFlags = 1)]
  81. public virtual int ResponseCode() /* MethodBuilder.Create */
  82. {
  83. return default(int);
  84. }
  85. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  86. internal HttpRetryException() /* TypeBuilder.AddDefaultConstructor */
  87. {
  88. }
  89. /// <summary>
  90. /// <para>Gets the location value.</para><para></para>
  91. /// </summary>
  92. /// <returns>
  93. /// <para>the stored location from the HTTP header. </para>
  94. /// </returns>
  95. /// <java-name>
  96. /// getLocation
  97. /// </java-name>
  98. public string Location
  99. {
  100. [Dot42.DexImport("getLocation", "()Ljava/lang/String;", AccessFlags = 1)]
  101. get{ return GetLocation(); }
  102. }
  103. /// <summary>
  104. /// <para>Gets the detail message.</para><para></para>
  105. /// </summary>
  106. /// <returns>
  107. /// <para>the detail message. </para>
  108. /// </returns>
  109. /// <java-name>
  110. /// getReason
  111. /// </java-name>
  112. public string Reason
  113. {
  114. [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
  115. get{ return GetReason(); }
  116. }
  117. }
  118. /// <summary>
  119. /// <para>A <c> URISyntaxException </c> will be thrown if some information could not be parsed while creating a URI. </para>
  120. /// </summary>
  121. /// <java-name>
  122. /// java/net/URISyntaxException
  123. /// </java-name>
  124. [Dot42.DexImport("java/net/URISyntaxException", AccessFlags = 33)]
  125. public partial class URISyntaxException : global::System.Exception
  126. /* scope: __dot42__ */
  127. {
  128. /// <summary>
  129. /// <para>Constructs a new <c> URISyntaxException </c> instance containing the string that caused the exception, a description of the problem and the index at which the error occurred.</para><para></para>
  130. /// </summary>
  131. [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;I)V", AccessFlags = 1)]
  132. public URISyntaxException(string input, string reason, int index) /* MethodBuilder.Create */
  133. {
  134. }
  135. /// <summary>
  136. /// <para>Constructs a new <c> URISyntaxException </c> instance containing the string that caused the exception and a description of the problem.</para><para></para>
  137. /// </summary>
  138. [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1)]
  139. public URISyntaxException(string input, string reason) /* MethodBuilder.Create */
  140. {
  141. }
  142. /// <summary>
  143. /// <para>Gets the index at which the syntax error was found or <c> -1 </c> if the index is unknown/unavailable.</para><para></para>
  144. /// </summary>
  145. /// <returns>
  146. /// <para>the index of the syntax error. </para>
  147. /// </returns>
  148. /// <java-name>
  149. /// getIndex
  150. /// </java-name>
  151. [Dot42.DexImport("getIndex", "()I", AccessFlags = 1)]
  152. public virtual int GetIndex() /* MethodBuilder.Create */
  153. {
  154. return default(int);
  155. }
  156. /// <summary>
  157. /// <para>Gets a description of the syntax error.</para><para></para>
  158. /// </summary>
  159. /// <returns>
  160. /// <para>the string describing the syntax error. </para>
  161. /// </returns>
  162. /// <java-name>
  163. /// getReason
  164. /// </java-name>
  165. [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
  166. public virtual string GetReason() /* MethodBuilder.Create */
  167. {
  168. return default(string);
  169. }
  170. /// <summary>
  171. /// <para>Gets the initial string that contains an invalid syntax.</para><para></para>
  172. /// </summary>
  173. /// <returns>
  174. /// <para>the string that caused the exception. </para>
  175. /// </returns>
  176. /// <java-name>
  177. /// getInput
  178. /// </java-name>
  179. [Dot42.DexImport("getInput", "()Ljava/lang/String;", AccessFlags = 1)]
  180. public virtual string GetInput() /* MethodBuilder.Create */
  181. {
  182. return default(string);
  183. }
  184. /// <summary>
  185. /// <para>Gets a description of the exception, including the reason, the string that caused the syntax error and the position of the syntax error if available.</para><para><para>java.lang.Throwable::getMessage() </para></para>
  186. /// </summary>
  187. /// <returns>
  188. /// <para>a sting containing information about the exception. </para>
  189. /// </returns>
  190. /// <java-name>
  191. /// getMessage
  192. /// </java-name>
  193. [Dot42.DexImport("getMessage", "()Ljava/lang/String;", AccessFlags = 1)]
  194. public override string GetMessage() /* MethodBuilder.Create */
  195. {
  196. return default(string);
  197. }
  198. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  199. internal URISyntaxException() /* TypeBuilder.AddDefaultConstructor */
  200. {
  201. }
  202. /// <summary>
  203. /// <para>Gets the index at which the syntax error was found or <c> -1 </c> if the index is unknown/unavailable.</para><para></para>
  204. /// </summary>
  205. /// <returns>
  206. /// <para>the index of the syntax error. </para>
  207. /// </returns>
  208. /// <java-name>
  209. /// getIndex
  210. /// </java-name>
  211. public int Index
  212. {
  213. [Dot42.DexImport("getIndex", "()I", AccessFlags = 1)]
  214. get{ return GetIndex(); }
  215. }
  216. /// <summary>
  217. /// <para>Gets a description of the syntax error.</para><para></para>
  218. /// </summary>
  219. /// <returns>
  220. /// <para>the string describing the syntax error. </para>
  221. /// </returns>
  222. /// <java-name>
  223. /// getReason
  224. /// </java-name>
  225. public string Reason
  226. {
  227. [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
  228. get{ return GetReason(); }
  229. }
  230. /// <summary>
  231. /// <para>Gets the initial string that contains an invalid syntax.</para><para></para>
  232. /// </summary>
  233. /// <returns>
  234. /// <para>the string that caused the exception. </para>
  235. /// </returns>
  236. /// <java-name>
  237. /// getInput
  238. /// </java-name>
  239. public string Input
  240. {
  241. [Dot42.DexImport("getInput", "()Ljava/lang/String;", AccessFlags = 1)]
  242. get{ return GetInput(); }
  243. }
  244. }
  245. /// <summary>
  246. /// <para>Legacy security code; do not use. </para>
  247. /// </summary>
  248. /// <java-name>
  249. /// java/net/NetPermission
  250. /// </java-name>
  251. [Dot42.DexImport("java/net/NetPermission", AccessFlags = 49)]
  252. public sealed partial class NetPermission : global::Java.Security.BasicPermission
  253. /* scope: __dot42__ */
  254. {
  255. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  256. public NetPermission(string name) /* MethodBuilder.Create */
  257. {
  258. }
  259. [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1)]
  260. public NetPermission(string name, string actions) /* MethodBuilder.Create */
  261. {
  262. }
  263. /// <java-name>
  264. /// getActions
  265. /// </java-name>
  266. [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
  267. public override string GetActions() /* MethodBuilder.Create */
  268. {
  269. return default(string);
  270. }
  271. /// <java-name>
  272. /// implies
  273. /// </java-name>
  274. [Dot42.DexImport("implies", "(Ljava/security/Permission;)Z", AccessFlags = 1)]
  275. public override bool Implies(global::Java.Security.Permission permission) /* MethodBuilder.Create */
  276. {
  277. return default(bool);
  278. }
  279. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  280. internal NetPermission() /* TypeBuilder.AddDefaultConstructor */
  281. {
  282. }
  283. /// <java-name>
  284. /// getActions
  285. /// </java-name>
  286. public string Actions
  287. {
  288. [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
  289. get{ return GetActions(); }
  290. }
  291. }
  292. /// <summary>
  293. /// <para>This interface defines a factory for socket implementations. </para>
  294. /// </summary>
  295. /// <java-name>
  296. /// java/net/SocketImplFactory
  297. /// </java-name>
  298. [Dot42.DexImport("java/net/SocketImplFactory", AccessFlags = 1537)]
  299. public partial interface ISocketImplFactory
  300. /* scope: __dot42__ */
  301. {
  302. /// <summary>
  303. /// <para>Creates a new <c> SocketImpl </c> instance.</para><para></para>
  304. /// </summary>
  305. /// <returns>
  306. /// <para>the created <c> SocketImpl </c> instance. </para>
  307. /// </returns>
  308. /// <java-name>
  309. /// createSocketImpl
  310. /// </java-name>
  311. [Dot42.DexImport("createSocketImpl", "()Ljava/net/SocketImpl;", AccessFlags = 1025)]
  312. global::Java.Net.SocketImpl CreateSocketImpl() /* MethodBuilder.Create */ ;
  313. }
  314. /// <summary>
  315. /// <para>Provides a client-side TCP socket. </para>
  316. /// </summary>
  317. /// <java-name>
  318. /// java/net/Socket
  319. /// </java-name>
  320. [Dot42.DexImport("java/net/Socket", AccessFlags = 33)]
  321. public partial class Socket
  322. /* scope: __dot42__ */
  323. {
  324. /// <summary>
  325. /// <para>Creates a new unconnected socket. When a SocketImplFactory is defined it creates the internal socket implementation, otherwise the default socket implementation will be used for this socket.</para><para><para>SocketImplFactory </para><simplesectsep></simplesectsep><para>SocketImpl </para></para>
  326. /// </summary>
  327. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  328. public Socket() /* MethodBuilder.Create */
  329. {
  330. }
  331. /// <summary>
  332. /// <para>Creates a new unconnected socket using the given proxy type. When a <c> SocketImplFactory </c> is defined it creates the internal socket implementation, otherwise the default socket implementation will be used for this socket. </para><para>Example that will create a socket connection through a <c> SOCKS </c> proxy server: <br></br> <c> Socket sock = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("test.domain.org", 2130))); </c></para><para><para>SocketImplFactory </para><simplesectsep></simplesectsep><para>SocketImpl </para></para>
  333. /// </summary>
  334. [Dot42.DexImport("<init>", "(Ljava/net/Proxy;)V", AccessFlags = 1)]
  335. public Socket(global::Java.Net.Proxy proxy) /* MethodBuilder.Create */
  336. {
  337. }
  338. /// <summary>
  339. /// <para>Creates a new streaming socket connected to the target host specified by the parameters <c> dstAddress </c> and <c> dstPort </c> . The socket is bound to any available port on the local host.</para><para></para>
  340. /// </summary>
  341. [Dot42.DexImport("<init>", "(Ljava/lang/String;I)V", AccessFlags = 1)]
  342. public Socket(string dstAddress, int dstPort) /* MethodBuilder.Create */
  343. {
  344. }
  345. /// <summary>
  346. /// <para>Creates a new streaming socket connected to the target host specified by the parameters <c> dstAddress </c> and <c> dstPort </c> . On the local endpoint the socket is bound to the given address <c> localAddress </c> on port <c> localPort </c> .</para><para></para>
  347. /// </summary>
  348. [Dot42.DexImport("<init>", "(Ljava/lang/String;ILjava/net/InetAddress;I)V", AccessFlags = 1)]
  349. public Socket(string dstAddress, int dstPort, global::Java.Net.InetAddress localAddress, int localPort) /* MethodBuilder.Create */
  350. {
  351. }
  352. [Dot42.DexImport("<init>", "(Ljava/lang/String;IZ)V", AccessFlags = 1)]
  353. public Socket(string @string, int int32, bool boolean) /* MethodBuilder.Create */
  354. {
  355. }
  356. /// <summary>
  357. /// <para>Creates a new streaming socket connected to the target host specified by the parameters <c> dstAddress </c> and <c> dstPort </c> . The socket is bound to any available port on the local host.</para><para></para>
  358. /// </summary>
  359. [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;I)V", AccessFlags = 1)]
  360. public Socket(global::Java.Net.InetAddress dstAddress, int dstPort) /* MethodBuilder.Create */
  361. {
  362. }
  363. /// <summary>
  364. /// <para>Creates a new streaming socket connected to the target host specified by the parameters <c> dstAddress </c> and <c> dstPort </c> . On the local endpoint the socket is bound to the given address <c> localAddress </c> on port <c> localPort </c> .</para><para></para>
  365. /// </summary>
  366. [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)V", AccessFlags = 1)]
  367. public Socket(global::Java.Net.InetAddress dstAddress, int dstPort, global::Java.Net.InetAddress localAddress, int localPort) /* MethodBuilder.Create */
  368. {
  369. }
  370. [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;IZ)V", AccessFlags = 1)]
  371. public Socket(global::Java.Net.InetAddress inetAddress, int int32, bool boolean) /* MethodBuilder.Create */
  372. {
  373. }
  374. /// <summary>
  375. /// <para>Creates a new unconnected socket using the given proxy type. When a <c> SocketImplFactory </c> is defined it creates the internal socket implementation, otherwise the default socket implementation will be used for this socket. </para><para>Example that will create a socket connection through a <c> SOCKS </c> proxy server: <br></br> <c> Socket sock = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("test.domain.org", 2130))); </c></para><para><para>SocketImplFactory </para><simplesectsep></simplesectsep><para>SocketImpl </para></para>
  376. /// </summary>
  377. [Dot42.DexImport("<init>", "(Ljava/net/SocketImpl;)V", AccessFlags = 4)]
  378. protected internal Socket(global::Java.Net.SocketImpl proxy) /* MethodBuilder.Create */
  379. {
  380. }
  381. /// <summary>
  382. /// <para>Closes the socket. It is not possible to reconnect or rebind to this socket thereafter which means a new socket instance has to be created.</para><para></para>
  383. /// </summary>
  384. /// <java-name>
  385. /// close
  386. /// </java-name>
  387. [Dot42.DexImport("close", "()V", AccessFlags = 33)]
  388. public virtual void Close() /* MethodBuilder.Create */
  389. {
  390. }
  391. /// <summary>
  392. /// <para>Returns the IP address of the target host this socket is connected to, or null if this socket is not yet connected. </para>
  393. /// </summary>
  394. /// <java-name>
  395. /// getInetAddress
  396. /// </java-name>
  397. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  398. public virtual global::Java.Net.InetAddress GetInetAddress() /* MethodBuilder.Create */
  399. {
  400. return default(global::Java.Net.InetAddress);
  401. }
  402. /// <summary>
  403. /// <para>Returns an input stream to read data from this socket.</para><para></para>
  404. /// </summary>
  405. /// <returns>
  406. /// <para>the byte-oriented input stream. </para>
  407. /// </returns>
  408. /// <java-name>
  409. /// getInputStream
  410. /// </java-name>
  411. [Dot42.DexImport("getInputStream", "()Ljava/io/InputStream;", AccessFlags = 1)]
  412. public virtual global::Java.Io.InputStream GetInputStream() /* MethodBuilder.Create */
  413. {
  414. return default(global::Java.Io.InputStream);
  415. }
  416. /// <summary>
  417. /// <para>Returns this socket's SocketOptions#SO_KEEPALIVE setting. </para>
  418. /// </summary>
  419. /// <java-name>
  420. /// getKeepAlive
  421. /// </java-name>
  422. [Dot42.DexImport("getKeepAlive", "()Z", AccessFlags = 1)]
  423. public virtual bool GetKeepAlive() /* MethodBuilder.Create */
  424. {
  425. return default(bool);
  426. }
  427. /// <summary>
  428. /// <para>Returns the local IP address this socket is bound to, or <c> InetAddress.ANY </c> if the socket is unbound. </para>
  429. /// </summary>
  430. /// <java-name>
  431. /// getLocalAddress
  432. /// </java-name>
  433. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  434. public virtual global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
  435. {
  436. return default(global::Java.Net.InetAddress);
  437. }
  438. /// <summary>
  439. /// <para>Returns the local port this socket is bound to, or -1 if the socket is unbound. </para>
  440. /// </summary>
  441. /// <java-name>
  442. /// getLocalPort
  443. /// </java-name>
  444. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  445. public virtual int GetLocalPort() /* MethodBuilder.Create */
  446. {
  447. return default(int);
  448. }
  449. /// <summary>
  450. /// <para>Returns an output stream to write data into this socket.</para><para></para>
  451. /// </summary>
  452. /// <returns>
  453. /// <para>the byte-oriented output stream. </para>
  454. /// </returns>
  455. /// <java-name>
  456. /// getOutputStream
  457. /// </java-name>
  458. [Dot42.DexImport("getOutputStream", "()Ljava/io/OutputStream;", AccessFlags = 1)]
  459. public virtual global::Java.Io.OutputStream GetOutputStream() /* MethodBuilder.Create */
  460. {
  461. return default(global::Java.Io.OutputStream);
  462. }
  463. /// <summary>
  464. /// <para>Returns the port number of the target host this socket is connected to, or 0 if this socket is not yet connected. </para>
  465. /// </summary>
  466. /// <java-name>
  467. /// getPort
  468. /// </java-name>
  469. [Dot42.DexImport("getPort", "()I", AccessFlags = 1)]
  470. public virtual int GetPort() /* MethodBuilder.Create */
  471. {
  472. return default(int);
  473. }
  474. /// <summary>
  475. /// <para>Returns this socket's linger timeout in seconds, or -1 for no linger (i.e. <c> close </c> will return immediately). </para>
  476. /// </summary>
  477. /// <java-name>
  478. /// getSoLinger
  479. /// </java-name>
  480. [Dot42.DexImport("getSoLinger", "()I", AccessFlags = 1)]
  481. public virtual int GetSoLinger() /* MethodBuilder.Create */
  482. {
  483. return default(int);
  484. }
  485. /// <summary>
  486. /// <para>Returns this socket's receive buffer size. </para>
  487. /// </summary>
  488. /// <java-name>
  489. /// getReceiveBufferSize
  490. /// </java-name>
  491. [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 33)]
  492. public virtual int GetReceiveBufferSize() /* MethodBuilder.Create */
  493. {
  494. return default(int);
  495. }
  496. /// <summary>
  497. /// <para>Returns this socket's send buffer size. </para>
  498. /// </summary>
  499. /// <java-name>
  500. /// getSendBufferSize
  501. /// </java-name>
  502. [Dot42.DexImport("getSendBufferSize", "()I", AccessFlags = 33)]
  503. public virtual int GetSendBufferSize() /* MethodBuilder.Create */
  504. {
  505. return default(int);
  506. }
  507. /// <summary>
  508. /// <para>Returns this socket's receive timeout. </para>
  509. /// </summary>
  510. /// <java-name>
  511. /// getSoTimeout
  512. /// </java-name>
  513. [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
  514. public virtual int GetSoTimeout() /* MethodBuilder.Create */
  515. {
  516. return default(int);
  517. }
  518. /// <summary>
  519. /// <para>Returns this socket's <c> SocketOptions#TCP_NODELAY </c> setting. </para>
  520. /// </summary>
  521. /// <java-name>
  522. /// getTcpNoDelay
  523. /// </java-name>
  524. [Dot42.DexImport("getTcpNoDelay", "()Z", AccessFlags = 1)]
  525. public virtual bool GetTcpNoDelay() /* MethodBuilder.Create */
  526. {
  527. return default(bool);
  528. }
  529. /// <summary>
  530. /// <para>Sets this socket's SocketOptions#SO_KEEPALIVE option. </para>
  531. /// </summary>
  532. /// <java-name>
  533. /// setKeepAlive
  534. /// </java-name>
  535. [Dot42.DexImport("setKeepAlive", "(Z)V", AccessFlags = 1)]
  536. public virtual void SetKeepAlive(bool keepAlive) /* MethodBuilder.Create */
  537. {
  538. }
  539. /// <summary>
  540. /// <para>Sets the internal factory for creating socket implementations. This may only be executed once during the lifetime of the application.</para><para></para>
  541. /// </summary>
  542. /// <java-name>
  543. /// setSocketImplFactory
  544. /// </java-name>
  545. [Dot42.DexImport("setSocketImplFactory", "(Ljava/net/SocketImplFactory;)V", AccessFlags = 41)]
  546. public static void SetSocketImplFactory(global::Java.Net.ISocketImplFactory fac) /* MethodBuilder.Create */
  547. {
  548. }
  549. /// <summary>
  550. /// <para>Sets this socket's send buffer size. </para>
  551. /// </summary>
  552. /// <java-name>
  553. /// setSendBufferSize
  554. /// </java-name>
  555. [Dot42.DexImport("setSendBufferSize", "(I)V", AccessFlags = 33)]
  556. public virtual void SetSendBufferSize(int size) /* MethodBuilder.Create */
  557. {
  558. }
  559. /// <summary>
  560. /// <para>Sets this socket's receive buffer size. </para>
  561. /// </summary>
  562. /// <java-name>
  563. /// setReceiveBufferSize
  564. /// </java-name>
  565. [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 33)]
  566. public virtual void SetReceiveBufferSize(int size) /* MethodBuilder.Create */
  567. {
  568. }
  569. /// <summary>
  570. /// <para>Sets this socket's linger timeout in seconds. If <c> on </c> is false, <c> timeout </c> is irrelevant. </para>
  571. /// </summary>
  572. /// <java-name>
  573. /// setSoLinger
  574. /// </java-name>
  575. [Dot42.DexImport("setSoLinger", "(ZI)V", AccessFlags = 1)]
  576. public virtual void SetSoLinger(bool on, int timeout) /* MethodBuilder.Create */
  577. {
  578. }
  579. /// <summary>
  580. /// <para>Sets this socket's read timeout in milliseconds. Use 0 for no timeout. To take effect, this option must be set before the blocking method was called. </para>
  581. /// </summary>
  582. /// <java-name>
  583. /// setSoTimeout
  584. /// </java-name>
  585. [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
  586. public virtual void SetSoTimeout(int timeout) /* MethodBuilder.Create */
  587. {
  588. }
  589. /// <summary>
  590. /// <para>Sets this socket's SocketOptions#TCP_NODELAY option. </para>
  591. /// </summary>
  592. /// <java-name>
  593. /// setTcpNoDelay
  594. /// </java-name>
  595. [Dot42.DexImport("setTcpNoDelay", "(Z)V", AccessFlags = 1)]
  596. public virtual void SetTcpNoDelay(bool on) /* MethodBuilder.Create */
  597. {
  598. }
  599. /// <summary>
  600. /// <para>Returns a <c> String </c> containing a concise, human-readable description of the socket.</para><para></para>
  601. /// </summary>
  602. /// <returns>
  603. /// <para>the textual representation of this socket. </para>
  604. /// </returns>
  605. /// <java-name>
  606. /// toString
  607. /// </java-name>
  608. [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
  609. public override string ToString() /* MethodBuilder.Create */
  610. {
  611. return default(string);
  612. }
  613. /// <summary>
  614. /// <para>Closes the input stream of this socket. Any further data sent to this socket will be discarded. Reading from this socket after this method has been called will return the value <c> EOF </c> .</para><para></para>
  615. /// </summary>
  616. /// <java-name>
  617. /// shutdownInput
  618. /// </java-name>
  619. [Dot42.DexImport("shutdownInput", "()V", AccessFlags = 1)]
  620. public virtual void ShutdownInput() /* MethodBuilder.Create */
  621. {
  622. }
  623. /// <summary>
  624. /// <para>Closes the output stream of this socket. All buffered data will be sent followed by the termination sequence. Writing to the closed output stream will cause an <c> IOException </c> .</para><para></para>
  625. /// </summary>
  626. /// <java-name>
  627. /// shutdownOutput
  628. /// </java-name>
  629. [Dot42.DexImport("shutdownOutput", "()V", AccessFlags = 1)]
  630. public virtual void ShutdownOutput() /* MethodBuilder.Create */
  631. {
  632. }
  633. /// <summary>
  634. /// <para>Returns the local address and port of this socket as a SocketAddress or null if the socket is unbound. This is useful on multihomed hosts. </para>
  635. /// </summary>
  636. /// <java-name>
  637. /// getLocalSocketAddress
  638. /// </java-name>
  639. [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  640. public virtual global::Java.Net.SocketAddress GetLocalSocketAddress() /* MethodBuilder.Create */
  641. {
  642. return default(global::Java.Net.SocketAddress);
  643. }
  644. /// <summary>
  645. /// <para>Returns the remote address and port of this socket as a <c> SocketAddress </c> or null if the socket is not connected.</para><para></para>
  646. /// </summary>
  647. /// <returns>
  648. /// <para>the remote socket address and port. </para>
  649. /// </returns>
  650. /// <java-name>
  651. /// getRemoteSocketAddress
  652. /// </java-name>
  653. [Dot42.DexImport("getRemoteSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  654. public virtual global::Java.Net.SocketAddress GetRemoteSocketAddress() /* MethodBuilder.Create */
  655. {
  656. return default(global::Java.Net.SocketAddress);
  657. }
  658. /// <summary>
  659. /// <para>Returns whether this socket is bound to a local address and port.</para><para></para>
  660. /// </summary>
  661. /// <returns>
  662. /// <para><c> true </c> if the socket is bound to a local address, <c> false </c> otherwise. </para>
  663. /// </returns>
  664. /// <java-name>
  665. /// isBound
  666. /// </java-name>
  667. [Dot42.DexImport("isBound", "()Z", AccessFlags = 1)]
  668. public virtual bool IsBound() /* MethodBuilder.Create */
  669. {
  670. return default(bool);
  671. }
  672. /// <summary>
  673. /// <para>Returns whether this socket is connected to a remote host.</para><para></para>
  674. /// </summary>
  675. /// <returns>
  676. /// <para><c> true </c> if the socket is connected, <c> false </c> otherwise. </para>
  677. /// </returns>
  678. /// <java-name>
  679. /// isConnected
  680. /// </java-name>
  681. [Dot42.DexImport("isConnected", "()Z", AccessFlags = 1)]
  682. public virtual bool IsConnected() /* MethodBuilder.Create */
  683. {
  684. return default(bool);
  685. }
  686. /// <summary>
  687. /// <para>Returns whether this socket is closed.</para><para></para>
  688. /// </summary>
  689. /// <returns>
  690. /// <para><c> true </c> if the socket is closed, <c> false </c> otherwise. </para>
  691. /// </returns>
  692. /// <java-name>
  693. /// isClosed
  694. /// </java-name>
  695. [Dot42.DexImport("isClosed", "()Z", AccessFlags = 1)]
  696. public virtual bool IsClosed() /* MethodBuilder.Create */
  697. {
  698. return default(bool);
  699. }
  700. /// <summary>
  701. /// <para>Binds this socket to the given local host address and port specified by the SocketAddress <c> localAddr </c> . If <c> localAddr </c> is set to <c> null </c> , this socket will be bound to an available local address on any free port.</para><para></para>
  702. /// </summary>
  703. /// <java-name>
  704. /// bind
  705. /// </java-name>
  706. [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  707. public virtual void Bind(global::Java.Net.SocketAddress localAddr) /* MethodBuilder.Create */
  708. {
  709. }
  710. /// <summary>
  711. /// <para>Connects this socket to the given remote host address and port specified by the SocketAddress <c> remoteAddr </c> .</para><para></para>
  712. /// </summary>
  713. /// <java-name>
  714. /// connect
  715. /// </java-name>
  716. [Dot42.DexImport("connect", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
  717. public virtual void Connect(global::Java.Net.SocketAddress remoteAddr) /* MethodBuilder.Create */
  718. {
  719. }
  720. /// <summary>
  721. /// <para>Connects this socket to the given remote host address and port specified by the SocketAddress <c> remoteAddr </c> with the specified timeout. The connecting method will block until the connection is established or an error occurred.</para><para></para>
  722. /// </summary>
  723. /// <java-name>
  724. /// connect
  725. /// </java-name>
  726. [Dot42.DexImport("connect", "(Ljava/net/SocketAddress;I)V", AccessFlags = 1)]
  727. public virtual void Connect(global::Java.Net.SocketAddress remoteAddr, int timeout) /* MethodBuilder.Create */
  728. {
  729. }
  730. /// <summary>
  731. /// <para>Returns whether the incoming channel of the socket has already been closed.</para><para></para>
  732. /// </summary>
  733. /// <returns>
  734. /// <para><c> true </c> if reading from this socket is not possible anymore, <c> false </c> otherwise. </para>
  735. /// </returns>
  736. /// <java-name>
  737. /// isInputShutdown
  738. /// </java-name>
  739. [Dot42.DexImport("isInputShutdown", "()Z", AccessFlags = 1)]
  740. public virtual bool IsInputShutdown() /* MethodBuilder.Create */
  741. {
  742. return default(bool);
  743. }
  744. /// <summary>
  745. /// <para>Returns whether the outgoing channel of the socket has already been closed.</para><para></para>
  746. /// </summary>
  747. /// <returns>
  748. /// <para><c> true </c> if writing to this socket is not possible anymore, <c> false </c> otherwise. </para>
  749. /// </returns>
  750. /// <java-name>
  751. /// isOutputShutdown
  752. /// </java-name>
  753. [Dot42.DexImport("isOutputShutdown", "()Z", AccessFlags = 1)]
  754. public virtual bool IsOutputShutdown() /* MethodBuilder.Create */
  755. {
  756. return default(bool);
  757. }
  758. /// <summary>
  759. /// <para>Sets this socket's SocketOptions#SO_REUSEADDR option. </para>
  760. /// </summary>
  761. /// <java-name>
  762. /// setReuseAddress
  763. /// </java-name>
  764. [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
  765. public virtual void SetReuseAddress(bool reuse) /* MethodBuilder.Create */
  766. {
  767. }
  768. /// <summary>
  769. /// <para>Returns this socket's SocketOptions#SO_REUSEADDR setting. </para>
  770. /// </summary>
  771. /// <java-name>
  772. /// getReuseAddress
  773. /// </java-name>
  774. [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
  775. public virtual bool GetReuseAddress() /* MethodBuilder.Create */
  776. {
  777. return default(bool);
  778. }
  779. /// <summary>
  780. /// <para>Sets this socket's SocketOptions#SO_OOBINLINE option. </para>
  781. /// </summary>
  782. /// <java-name>
  783. /// setOOBInline
  784. /// </java-name>
  785. [Dot42.DexImport("setOOBInline", "(Z)V", AccessFlags = 1)]
  786. public virtual void SetOOBInline(bool oobinline) /* MethodBuilder.Create */
  787. {
  788. }
  789. /// <summary>
  790. /// <para>Returns this socket's SocketOptions#SO_OOBINLINE setting. </para>
  791. /// </summary>
  792. /// <java-name>
  793. /// getOOBInline
  794. /// </java-name>
  795. [Dot42.DexImport("getOOBInline", "()Z", AccessFlags = 1)]
  796. public virtual bool GetOOBInline() /* MethodBuilder.Create */
  797. {
  798. return default(bool);
  799. }
  800. /// <summary>
  801. /// <para>Sets this socket's SocketOptions#IP_TOS value for every packet sent by this socket. </para>
  802. /// </summary>
  803. /// <java-name>
  804. /// setTrafficClass
  805. /// </java-name>
  806. [Dot42.DexImport("setTrafficClass", "(I)V", AccessFlags = 1)]
  807. public virtual void SetTrafficClass(int value) /* MethodBuilder.Create */
  808. {
  809. }
  810. /// <summary>
  811. /// <para>Returns this socket's {<para>SocketOptions::IP_TOS} setting. </para></para>
  812. /// </summary>
  813. /// <java-name>
  814. /// getTrafficClass
  815. /// </java-name>
  816. [Dot42.DexImport("getTrafficClass", "()I", AccessFlags = 1)]
  817. public virtual int GetTrafficClass() /* MethodBuilder.Create */
  818. {
  819. return default(int);
  820. }
  821. /// <summary>
  822. /// <para>Sends the given single byte data which is represented by the lowest octet of <c> value </c> as "TCP urgent data".</para><para></para>
  823. /// </summary>
  824. /// <java-name>
  825. /// sendUrgentData
  826. /// </java-name>
  827. [Dot42.DexImport("sendUrgentData", "(I)V", AccessFlags = 1)]
  828. public virtual void SendUrgentData(int value) /* MethodBuilder.Create */
  829. {
  830. }
  831. /// <summary>
  832. /// <para>Returns this socket's <c> SocketChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.ServerSocketChannel#accept or java.nio.channels.SocketChannel#open. </para>
  833. /// </summary>
  834. /// <java-name>
  835. /// getChannel
  836. /// </java-name>
  837. [Dot42.DexImport("getChannel", "()Ljava/nio/channels/SocketChannel;", AccessFlags = 1)]
  838. public virtual global::Java.Nio.Channels.SocketChannel GetChannel() /* MethodBuilder.Create */
  839. {
  840. return default(global::Java.Nio.Channels.SocketChannel);
  841. }
  842. /// <summary>
  843. /// <para>Sets performance preferences for connectionTime, latency and bandwidth.</para><para>This method does currently nothing.</para><para></para>
  844. /// </summary>
  845. /// <java-name>
  846. /// setPerformancePreferences
  847. /// </java-name>
  848. [Dot42.DexImport("setPerformancePreferences", "(III)V", AccessFlags = 1)]
  849. public virtual void SetPerformancePreferences(int connectionTime, int latency, int bandwidth) /* MethodBuilder.Create */
  850. {
  851. }
  852. /// <summary>
  853. /// <para>Returns the IP address of the target host this socket is connected to, or null if this socket is not yet connected. </para>
  854. /// </summary>
  855. /// <java-name>
  856. /// getInetAddress
  857. /// </java-name>
  858. public global::Java.Net.InetAddress InetAddress
  859. {
  860. [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  861. get{ return GetInetAddress(); }
  862. }
  863. /// <summary>
  864. /// <para>Returns an input stream to read data from this socket.</para><para></para>
  865. /// </summary>
  866. /// <returns>
  867. /// <para>the byte-oriented input stream. </para>
  868. /// </returns>
  869. /// <java-name>
  870. /// getInputStream
  871. /// </java-name>
  872. public global::Java.Io.InputStream InputStream
  873. {
  874. [Dot42.DexImport("getInputStream", "()Ljava/io/InputStream;", AccessFlags = 1)]
  875. get{ return GetInputStream(); }
  876. }
  877. /// <summary>
  878. /// <para>Returns this socket's SocketOptions#SO_KEEPALIVE setting. </para>
  879. /// </summary>
  880. /// <java-name>
  881. /// getKeepAlive
  882. /// </java-name>
  883. public bool IsKeepAlive
  884. {
  885. [Dot42.DexImport("getKeepAlive", "()Z", AccessFlags = 1)]
  886. get{ return GetKeepAlive(); }
  887. [Dot42.DexImport("setKeepAlive", "(Z)V", AccessFlags = 1)]
  888. set{ SetKeepAlive(value); }
  889. }
  890. /// <summary>
  891. /// <para>Returns the local IP address this socket is bound to, or <c> InetAddress.ANY </c> if the socket is unbound. </para>
  892. /// </summary>
  893. /// <java-name>
  894. /// getLocalAddress
  895. /// </java-name>
  896. public global::Java.Net.InetAddress LocalAddress
  897. {
  898. [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
  899. get{ return GetLocalAddress(); }
  900. }
  901. /// <summary>
  902. /// <para>Returns the local port this socket is bound to, or -1 if the socket is unbound. </para>
  903. /// </summary>
  904. /// <java-name>
  905. /// getLocalPort
  906. /// </java-name>
  907. public int LocalPort
  908. {
  909. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
  910. get{ return GetLocalPort(); }
  911. }
  912. /// <summary>
  913. /// <para>Returns an output stream to write data into this socket.</para><para></para>
  914. /// </summary>
  915. /// <returns>
  916. /// <para>the byte-oriented output stream. </para>
  917. /// </returns>
  918. /// <java-name>
  919. /// getOutputStream
  920. /// </java-name>
  921. public global::Java.Io.OutputStream OutputStream
  922. {
  923. [Dot42.DexImport("getOutputStream", "()Ljava/io/OutputStream;", AccessFlags = 1)]
  924. get{ return GetOutputStream(); }
  925. }
  926. /// <summary>
  927. /// <para>Returns the port number of the target host this socket is connected to, or 0 if this socket is not yet connected. </para>
  928. /// </summary>
  929. /// <java-name>
  930. /// getPort
  931. /// </java-name>
  932. public int Port
  933. {
  934. [Dot42.DexImport("getPort", "()I", AccessFlags = 1)]
  935. get{ return GetPort(); }
  936. }
  937. /// <summary>
  938. /// <para>Returns this socket's linger timeout in seconds, or -1 for no linger (i.e. <c> close </c> will return immediately). </para>
  939. /// </summary>
  940. /// <java-name>
  941. /// getSoLinger
  942. /// </java-name>
  943. public int SoLinger
  944. {
  945. [Dot42.DexImport("getSoLinger", "()I", AccessFlags = 1)]
  946. get{ return GetSoLinger(); }
  947. }
  948. /// <summary>
  949. /// <para>Returns this socket's receive buffer size. </para>
  950. /// </summary>
  951. /// <java-name>
  952. /// getReceiveBufferSize
  953. /// </java-name>
  954. public int ReceiveBufferSize
  955. {
  956. [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 33)]
  957. get{ return GetReceiveBufferSize(); }
  958. [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 33)]
  959. set{ SetReceiveBufferSize(value); }
  960. }
  961. /// <summary>
  962. /// <para>Returns this socket's send buffer size. </para>
  963. /// </summary>
  964. /// <java-name>
  965. /// getSendBufferSize
  966. /// </java-name>
  967. public int SendBufferSize
  968. {
  969. [Dot42.DexImport("getSendBufferSize", "()I", AccessFlags = 33)]
  970. get{ return GetSendBufferSize(); }
  971. [Dot42.DexImport("setSendBufferSize", "(I)V", AccessFlags = 33)]
  972. set{ SetSendBufferSize(value); }
  973. }
  974. /// <summary>
  975. /// <para>Returns this socket's receive timeout. </para>
  976. /// </summary>
  977. /// <java-name>
  978. /// getSoTimeout
  979. /// </java-name>
  980. public int SoTimeout
  981. {
  982. [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
  983. get{ return GetSoTimeout(); }
  984. [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
  985. set{ SetSoTimeout(value); }
  986. }
  987. /// <summary>
  988. /// <para>Returns this socket's <c> SocketOptions#TCP_NODELAY </c> setting. </para>
  989. /// </summary>
  990. /// <java-name>
  991. /// getTcpNoDelay
  992. /// </java-name>
  993. public bool IsTcpNoDelay
  994. {
  995. [Dot42.DexImport("getTcpNoDelay", "()Z", AccessFlags = 1)]
  996. get{ return GetTcpNoDelay(); }
  997. [Dot42.DexImport("setTcpNoDelay", "(Z)V", AccessFlags = 1)]
  998. set{ SetTcpNoDelay(value); }
  999. }
  1000. /// <summary>
  1001. /// <para>Returns the local address and port of this socket as a SocketAddress or null if the socket is unbound. This is useful on multihomed hosts. </para>
  1002. /// </summary>
  1003. /// <java-name>
  1004. /// getLocalSocketAddress
  1005. /// </java-name>
  1006. public global::Java.Net.SocketAddress LocalSocketAddress
  1007. {
  1008. [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  1009. get{ return GetLocalSocketAddress(); }
  1010. }
  1011. /// <summary>
  1012. /// <para>Returns the remote address and port of this socket as a <c> SocketAddress </c> or null if the socket is not connected.</para><para></para>
  1013. /// </summary>
  1014. /// <returns>
  1015. /// <para>the remote socket address and port. </para>
  1016. /// </returns>
  1017. /// <java-name>
  1018. /// getRemoteSocketAddress
  1019. /// </java-name>
  1020. public global::Java.Net.SocketAddress RemoteSocketAddress
  1021. {
  1022. [Dot42.DexImport("getRemoteSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
  1023. get{ return GetRemoteSocketAddress(); }
  1024. }
  1025. /// <summary>
  1026. /// <para>Returns this socket's SocketOptions#SO_REUSEADDR setting. </para>
  1027. /// </summary>
  1028. /// <java-name>
  1029. /// getReuseAddress
  1030. /// </java-name>
  1031. public bool IsReuseAddress
  1032. {
  1033. [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
  1034. get{ return GetReuseAddress(); }
  1035. [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
  1036. set{ SetReuseAddress(value); }
  1037. }
  1038. /// <summary>
  1039. /// <para>Returns this socket's SocketOptions#SO_OOBINLINE setting. </para>
  1040. /// </summary>
  1041. /// <java-name>
  1042. /// getOOBInline
  1043. /// </java-name>
  1044. public bool IsOOBInline
  1045. {
  1046. [Dot42.DexImport("getOOBInline", "()Z", AccessFlags = 1)]
  1047. get{ return GetOOBInline(); }
  1048. [Dot42.DexImport("setOOBInline", "(Z)V", AccessFlags = 1)]
  1049. set{ SetOOBInline(value); }
  1050. }
  1051. /// <summary>
  1052. /// <para>Returns this socket's {<para>SocketOptions::IP_TOS} setting. </para></para>
  1053. /// </summary>
  1054. /// <java-name>
  1055. /// getTrafficClass
  1056. /// </java-name>
  1057. public int TrafficClass
  1058. {
  1059. [Dot42.DexImport("getTrafficClass", "()I", AccessFlags = 1)]
  1060. get{ return GetTrafficClass(); }
  1061. [Dot42.DexImport("setTrafficClass", "(I)V", AccessFlags = 1)]
  1062. set{ SetTrafficClass(value); }
  1063. }
  1064. /// <summary>
  1065. /// <para>Returns this socket's <c> SocketChannel </c> , if one exists. A channel is available only if this socket wraps a channel. (That is, you can go from a channel to a socket and back again, but you can't go from an arbitrary socket to a channel.) In practice, this means that the socket must have been created by java.nio.channels.ServerSocketChannel#accept or java.nio.channels.SocketChannel#open. </para>
  1066. /// </summary>
  1067. /// <java-name>
  1068. /// getChannel
  1069. /// </java-name>
  1070. public global::Java.Nio.Channels.SocketChannel Channel
  1071. {
  1072. [Dot42.DexImport("getChannel", "()Ljava/nio/channels/SocketChannel;", AccessFlags = 1)]
  1073. get{ return GetChannel(); }
  1074. }
  1075. }
  1076. /// <summary>
  1077. /// <para>A <c> BindException </c> is thrown when a process cannot bind a local address/port, either because it is already bound or reserved by the OS.</para><para>Most applications <b>should not</b> catch this exception; it is more robust to catch the superclass <c> SocketException </c> . </para>
  1078. /// </summary>
  1079. /// <java-name>
  1080. /// java/net/BindException
  1081. /// </java-name>
  1082. [Dot42.DexImport("java/net/BindException", AccessFlags = 33)]
  1083. public partial class BindException : global::Java.Net.SocketException
  1084. /* scope: __dot42__ */
  1085. {
  1086. /// <summary>
  1087. /// <para>Constructs a new instance. </para>
  1088. /// </summary>
  1089. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1090. public BindException() /* MethodBuilder.Create */
  1091. {
  1092. }
  1093. /// <summary>
  1094. /// <para>Constructs a new instance with the given detail message. </para>
  1095. /// </summary>
  1096. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  1097. public BindException(string detailMessage) /* MethodBuilder.Create */
  1098. {
  1099. }
  1100. }
  1101. /// <summary>
  1102. /// <para>Signals that either a connection attempt to a socket of the wrong type, the application of an unsupported operation or that a general error in the underlying protocol has occurred. </para>
  1103. /// </summary>
  1104. /// <java-name>
  1105. /// java/net/ProtocolException
  1106. /// </java-name>
  1107. [Dot42.DexImport("java/net/ProtocolException", AccessFlags = 33)]
  1108. public partial class ProtocolException : global::System.IO.IOException
  1109. /* scope: __dot42__ */
  1110. {
  1111. /// <summary>
  1112. /// <para>Constructs a new instance. </para>
  1113. /// </summary>
  1114. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1115. public ProtocolException() /* MethodBuilder.Create */
  1116. {
  1117. }
  1118. /// <summary>
  1119. /// <para>Constructs a new instance with the given detail message. </para>
  1120. /// </summary>
  1121. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  1122. public ProtocolException(string detailMessage) /* MethodBuilder.Create */
  1123. {
  1124. }
  1125. }
  1126. /// <summary>
  1127. /// <para>The abstract superclass for datagram and multicast socket implementations. </para>
  1128. /// </summary>
  1129. /// <java-name>
  1130. /// java/net/DatagramSocketImpl
  1131. /// </java-name>
  1132. [Dot42.DexImport("java/net/DatagramSocketImpl", AccessFlags = 1057)]
  1133. public abstract partial class DatagramSocketImpl : global::Java.Net.ISocketOptions
  1134. /* scope: __dot42__ */
  1135. {
  1136. /// <summary>
  1137. /// <para>File descriptor that is used to address this socket. </para>
  1138. /// </summary>
  1139. /// <java-name>
  1140. /// fd
  1141. /// </java-name>
  1142. [Dot42.DexImport("fd", "Ljava/io/FileDescriptor;", AccessFlags = 4)]
  1143. protected internal global::Java.Io.FileDescriptor Fd;
  1144. /// <summary>
  1145. /// <para>The number of the local port to which this socket is bound. </para>
  1146. /// </summary>
  1147. /// <java-name>
  1148. /// localPort
  1149. /// </java-name>
  1150. [Dot42.DexImport("localPort", "I", AccessFlags = 4)]
  1151. protected internal int LocalPort;
  1152. /// <summary>
  1153. /// <para>Constructs an unbound datagram socket implementation. </para>
  1154. /// </summary>
  1155. [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
  1156. public DatagramSocketImpl() /* MethodBuilder.Create */
  1157. {
  1158. }
  1159. /// <summary>
  1160. /// <para>Binds the datagram socket to the given localhost/port. Sockets must be bound prior to attempting to send or receive data.</para><para></para>
  1161. /// </summary>
  1162. /// <java-name>
  1163. /// bind
  1164. /// </java-name>
  1165. [Dot42.DexImport("bind", "(ILjava/net/InetAddress;)V", AccessFlags = 1028)]
  1166. protected internal abstract void Bind(int port, global::Java.Net.InetAddress addr) /* MethodBuilder.Create */ ;
  1167. /// <summary>
  1168. /// <para>Closes this socket. </para>
  1169. /// </summary>
  1170. /// <java-name>
  1171. /// close
  1172. /// </java-name>
  1173. [Dot42.DexImport("close", "()V", AccessFlags = 1028)]
  1174. protected internal abstract void Close() /* MethodBuilder.Create */ ;
  1175. /// <summary>
  1176. /// <para>This method allocates the socket descriptor in the underlying operating system.</para><para></para>
  1177. /// </summary>
  1178. /// <java-name>
  1179. /// create
  1180. /// </java-name>
  1181. [Dot42.DexImport("create", "()V", AccessFlags = 1028)]
  1182. protected internal abstract void Create() /* MethodBuilder.Create */ ;
  1183. /// <summary>
  1184. /// <para>Gets the <c> FileDescriptor </c> of this datagram socket, which is invalid if the socket is closed or not bound.</para><para></para>
  1185. /// </summary>
  1186. /// <returns>
  1187. /// <para>the current file descriptor of this socket. </para>
  1188. /// </returns>
  1189. /// <java-name>
  1190. /// getFileDescriptor
  1191. /// </java-name>
  1192. [Dot42.DexImport("getFileDescriptor", "()Ljava/io/FileDescriptor;", AccessFlags = 4)]
  1193. protected internal virtual global::Java.Io.FileDescriptor GetFileDescriptor() /* MethodBuilder.Create */
  1194. {
  1195. return default(global::Java.Io.FileDescriptor);
  1196. }
  1197. /// <summary>
  1198. /// <para>Returns the local port to which this socket is bound. </para>
  1199. /// </summary>
  1200. /// <java-name>
  1201. /// getLocalPort
  1202. /// </java-name>
  1203. [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 4)]
  1204. protected internal virtual int GetLocalPort() /* MethodBuilder.Create */
  1205. {
  1206. return default(int);
  1207. }
  1208. /// <summary>
  1209. /// <para>Gets the time-to-live (TTL) for multicast packets sent on this socket.</para><para><xrefsect><xreftitle>Deprecated</xreftitle><xrefdescription><para>Replaced by getTimeToLive </para></xrefdescription></xrefsect><para>getTimeToLive() </para></para>
  1210. /// </summary>
  1211. /// <returns>
  1212. /// <para>the time-to-live option as a byte value. </para>
  1213. /// </returns>
  1214. /// <java-name>
  1215. /// getTTL
  1216. /// </java-name>
  1217. [Dot42.DexImport("getTTL", "()B", AccessFlags = 1028)]
  1218. protected internal abstract sbyte JavaGetTTL() /* MethodBuilder.Create */ ;
  1219. /// <summary>
  1220. /// <para>Gets the time-to-live (TTL) for multicast packets sent on this socket.</para><para><xrefsect><xreftitle>Deprecated</xreftitle><xrefdescription><para>Replaced by getTimeToLive </para></xrefdescription></xrefsect><para>getTimeToLive() </para></para>
  1221. /// </summary>
  1222. /// <returns>
  1223. /// <para>the time-to-live option as a byte value. </para>
  1224. /// </returns>
  1225. /// <java-name>
  1226. /// getTTL
  1227. /// </java-name>
  1228. [Dot42.DexImport("getTTL", "()B", AccessFlags = 1028, IgnoreFromJava = true)]
  1229. protected internal abstract byte GetTTL() /* MethodBuilder.Create */ ;
  1230. /// <summary>
  1231. /// <para>Gets the time-to-live (TTL) for multicast packets sent on this socket. The TTL option defines how many routers a packet may be pass before it is discarded.</para><para></para>
  1232. /// </summary>