/Generated/v3.1/Javax.Net.cs

https://gitlab.com/Pfhoenix/api · C# · 235 lines · 64 code · 19 blank · 152 comment · 0 complexity · 0801d99a0769082ca4de1c21c217e6c0 MD5 · raw file

  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Javax.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 Javax.Net
  18. {
  19. /// <summary>
  20. /// <para>This abstract class defines methods to create sockets. It can be subclassed to create specific socket types with additional socket-level functionality. </para>
  21. /// </summary>
  22. /// <java-name>
  23. /// javax/net/SocketFactory
  24. /// </java-name>
  25. [Dot42.DexImport("javax/net/SocketFactory", AccessFlags = 1057)]
  26. public abstract partial class SocketFactory
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Creates a new <c> SocketFactory </c> instance. </para>
  31. /// </summary>
  32. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  33. protected internal SocketFactory() /* MethodBuilder.Create */
  34. {
  35. }
  36. /// <summary>
  37. /// <para>Gets the default socket factory of the system which can be used to create new sockets without creating a subclass of this factory.</para><para></para>
  38. /// </summary>
  39. /// <returns>
  40. /// <para>the system default socket factory. </para>
  41. /// </returns>
  42. /// <java-name>
  43. /// getDefault
  44. /// </java-name>
  45. [Dot42.DexImport("getDefault", "()Ljavax/net/SocketFactory;", AccessFlags = 41)]
  46. public static global::Javax.Net.SocketFactory GetDefault() /* MethodBuilder.Create */
  47. {
  48. return default(global::Javax.Net.SocketFactory);
  49. }
  50. /// <summary>
  51. /// <para>Creates a new socket which is not connected to any remote host. This method has to be overridden by a subclass otherwise a <c> SocketException </c> is thrown.</para><para></para>
  52. /// </summary>
  53. /// <returns>
  54. /// <para>the created unconnected socket. </para>
  55. /// </returns>
  56. /// <java-name>
  57. /// createSocket
  58. /// </java-name>
  59. [Dot42.DexImport("createSocket", "()Ljava/net/Socket;", AccessFlags = 1)]
  60. public virtual global::Java.Net.Socket CreateSocket() /* MethodBuilder.Create */
  61. {
  62. return default(global::Java.Net.Socket);
  63. }
  64. /// <summary>
  65. /// <para>Creates a new socket which is connected to the remote host specified by the InetAddress <c> host </c> . The socket is bound to any available local address and port.</para><para></para>
  66. /// </summary>
  67. /// <returns>
  68. /// <para>the created connected socket. </para>
  69. /// </returns>
  70. /// <java-name>
  71. /// createSocket
  72. /// </java-name>
  73. [Dot42.DexImport("createSocket", "(Ljava/lang/String;I)Ljava/net/Socket;", AccessFlags = 1025)]
  74. public abstract global::Java.Net.Socket CreateSocket(string host, int port) /* MethodBuilder.Create */ ;
  75. /// <summary>
  76. /// <para>Creates a new socket which is connected to the remote host specified by the InetAddress <c> address </c> . The socket is bound to the local network interface specified by the InetAddress <c> localHost </c> on port <c> localPort </c> .</para><para></para>
  77. /// </summary>
  78. /// <returns>
  79. /// <para>the created connected socket. </para>
  80. /// </returns>
  81. /// <java-name>
  82. /// createSocket
  83. /// </java-name>
  84. [Dot42.DexImport("createSocket", "(Ljava/lang/String;ILjava/net/InetAddress;I)Ljava/net/Socket;", AccessFlags = 1025)]
  85. public abstract global::Java.Net.Socket CreateSocket(string address, int port, global::Java.Net.InetAddress localAddress, int localPort) /* MethodBuilder.Create */ ;
  86. /// <summary>
  87. /// <para>Creates a new socket which is connected to the remote host specified by the InetAddress <c> host </c> . The socket is bound to any available local address and port.</para><para></para>
  88. /// </summary>
  89. /// <returns>
  90. /// <para>the created connected socket. </para>
  91. /// </returns>
  92. /// <java-name>
  93. /// createSocket
  94. /// </java-name>
  95. [Dot42.DexImport("createSocket", "(Ljava/net/InetAddress;I)Ljava/net/Socket;", AccessFlags = 1025)]
  96. public abstract global::Java.Net.Socket CreateSocket(global::Java.Net.InetAddress host, int port) /* MethodBuilder.Create */ ;
  97. /// <summary>
  98. /// <para>Creates a new socket which is connected to the remote host specified by the InetAddress <c> address </c> . The socket is bound to the local network interface specified by the InetAddress <c> localHost </c> on port <c> localPort </c> .</para><para></para>
  99. /// </summary>
  100. /// <returns>
  101. /// <para>the created connected socket. </para>
  102. /// </returns>
  103. /// <java-name>
  104. /// createSocket
  105. /// </java-name>
  106. [Dot42.DexImport("createSocket", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)Ljava/net/Socket;", AccessFlags = 1025)]
  107. public abstract global::Java.Net.Socket CreateSocket(global::Java.Net.InetAddress address, int port, global::Java.Net.InetAddress localAddress, int localPort) /* MethodBuilder.Create */ ;
  108. /// <summary>
  109. /// <para>Gets the default socket factory of the system which can be used to create new sockets without creating a subclass of this factory.</para><para></para>
  110. /// </summary>
  111. /// <returns>
  112. /// <para>the system default socket factory. </para>
  113. /// </returns>
  114. /// <java-name>
  115. /// getDefault
  116. /// </java-name>
  117. public static global::Javax.Net.SocketFactory Default
  118. {
  119. [Dot42.DexImport("getDefault", "()Ljavax/net/SocketFactory;", AccessFlags = 41)]
  120. get{ return GetDefault(); }
  121. }
  122. }
  123. /// <summary>
  124. /// <para>This abstract class defines methods to create server sockets. It can be subclassed to create specific server socket types. </para>
  125. /// </summary>
  126. /// <java-name>
  127. /// javax/net/ServerSocketFactory
  128. /// </java-name>
  129. [Dot42.DexImport("javax/net/ServerSocketFactory", AccessFlags = 1057)]
  130. public abstract partial class ServerSocketFactory
  131. /* scope: __dot42__ */
  132. {
  133. /// <summary>
  134. /// <para>Creates a new <c> ServerSocketFactory </c> instance. </para>
  135. /// </summary>
  136. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  137. protected internal ServerSocketFactory() /* MethodBuilder.Create */
  138. {
  139. }
  140. /// <summary>
  141. /// <para>Gets the default server socket factory of the system which can be used to create new server sockets without creating a subclass of this factory.</para><para></para>
  142. /// </summary>
  143. /// <returns>
  144. /// <para>the system default server socket factory. </para>
  145. /// </returns>
  146. /// <java-name>
  147. /// getDefault
  148. /// </java-name>
  149. [Dot42.DexImport("getDefault", "()Ljavax/net/ServerSocketFactory;", AccessFlags = 41)]
  150. public static global::Javax.Net.ServerSocketFactory GetDefault() /* MethodBuilder.Create */
  151. {
  152. return default(global::Javax.Net.ServerSocketFactory);
  153. }
  154. /// <summary>
  155. /// <para>Creates a new server socket which is not bound to any local address. This method has to be overridden by a subclass otherwise a <c> SocketException </c> is thrown.</para><para></para>
  156. /// </summary>
  157. /// <returns>
  158. /// <para>the created unbound server socket. </para>
  159. /// </returns>
  160. /// <java-name>
  161. /// createServerSocket
  162. /// </java-name>
  163. [Dot42.DexImport("createServerSocket", "()Ljava/net/ServerSocket;", AccessFlags = 1)]
  164. public virtual global::Java.Net.ServerSocket CreateServerSocket() /* MethodBuilder.Create */
  165. {
  166. return default(global::Java.Net.ServerSocket);
  167. }
  168. /// <summary>
  169. /// <para>Creates a new server socket which is bound to the given port with a maximum backlog of 50 unaccepted connections.</para><para></para>
  170. /// </summary>
  171. /// <returns>
  172. /// <para>the created bound server socket. </para>
  173. /// </returns>
  174. /// <java-name>
  175. /// createServerSocket
  176. /// </java-name>
  177. [Dot42.DexImport("createServerSocket", "(I)Ljava/net/ServerSocket;", AccessFlags = 1025)]
  178. public abstract global::Java.Net.ServerSocket CreateServerSocket(int port) /* MethodBuilder.Create */ ;
  179. /// <summary>
  180. /// <para>Creates a new server socket which is bound to the given port and configures its maximum of queued connections.</para><para></para>
  181. /// </summary>
  182. /// <returns>
  183. /// <para>the created bound server socket. </para>
  184. /// </returns>
  185. /// <java-name>
  186. /// createServerSocket
  187. /// </java-name>
  188. [Dot42.DexImport("createServerSocket", "(II)Ljava/net/ServerSocket;", AccessFlags = 1025)]
  189. public abstract global::Java.Net.ServerSocket CreateServerSocket(int port, int backlog) /* MethodBuilder.Create */ ;
  190. /// <summary>
  191. /// <para>Creates a new server socket which is bound to the given address on the specified port and configures its maximum of queued connections.</para><para></para>
  192. /// </summary>
  193. /// <returns>
  194. /// <para>the created bound server socket. </para>
  195. /// </returns>
  196. /// <java-name>
  197. /// createServerSocket
  198. /// </java-name>
  199. [Dot42.DexImport("createServerSocket", "(IILjava/net/InetAddress;)Ljava/net/ServerSocket;", AccessFlags = 1025)]
  200. public abstract global::Java.Net.ServerSocket CreateServerSocket(int port, int backlog, global::Java.Net.InetAddress iAddress) /* MethodBuilder.Create */ ;
  201. /// <summary>
  202. /// <para>Gets the default server socket factory of the system which can be used to create new server sockets without creating a subclass of this factory.</para><para></para>
  203. /// </summary>
  204. /// <returns>
  205. /// <para>the system default server socket factory. </para>
  206. /// </returns>
  207. /// <java-name>
  208. /// getDefault
  209. /// </java-name>
  210. public static global::Javax.Net.ServerSocketFactory Default
  211. {
  212. [Dot42.DexImport("getDefault", "()Ljavax/net/ServerSocketFactory;", AccessFlags = 41)]
  213. get{ return GetDefault(); }
  214. }
  215. }
  216. }