/jni/MonoJavaBridge/android/generated/java/net/ServerSocket.cs

http://github.com/koush/androidmono · C# · 249 lines · 249 code · 0 blank · 0 comment · 19 complexity · 120a935b0e86d45e7585ccf4c0972517 MD5 · raw file

  1. namespace java.net
  2. {
  3. [global::MonoJavaBridge.JavaClass()]
  4. public partial class ServerSocket : java.lang.Object
  5. {
  6. internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
  7. static ServerSocket()
  8. {
  9. InitJNI();
  10. }
  11. protected ServerSocket(global::MonoJavaBridge.JNIEnv @__env) : base(@__env)
  12. {
  13. }
  14. internal static global::MonoJavaBridge.MethodId _toString13734;
  15. public override global::java.lang.String toString()
  16. {
  17. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  18. if (!IsClrObject)
  19. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.ServerSocket._toString13734)) as java.lang.String;
  20. else
  21. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._toString13734)) as java.lang.String;
  22. }
  23. internal static global::MonoJavaBridge.MethodId _close13735;
  24. public virtual void close()
  25. {
  26. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  27. if (!IsClrObject)
  28. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._close13735);
  29. else
  30. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._close13735);
  31. }
  32. internal static global::MonoJavaBridge.MethodId _accept13736;
  33. public virtual global::java.net.Socket accept()
  34. {
  35. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  36. if (!IsClrObject)
  37. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.ServerSocket._accept13736)) as java.net.Socket;
  38. else
  39. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._accept13736)) as java.net.Socket;
  40. }
  41. internal static global::MonoJavaBridge.MethodId _getChannel13737;
  42. public virtual global::java.nio.channels.ServerSocketChannel getChannel()
  43. {
  44. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  45. if (!IsClrObject)
  46. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.ServerSocket._getChannel13737)) as java.nio.channels.ServerSocketChannel;
  47. else
  48. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getChannel13737)) as java.nio.channels.ServerSocketChannel;
  49. }
  50. internal static global::MonoJavaBridge.MethodId _isClosed13738;
  51. public virtual bool isClosed()
  52. {
  53. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  54. if (!IsClrObject)
  55. return @__env.CallBooleanMethod(this.JvmHandle, global::java.net.ServerSocket._isClosed13738);
  56. else
  57. return @__env.CallNonVirtualBooleanMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._isClosed13738);
  58. }
  59. internal static global::MonoJavaBridge.MethodId _bind13739;
  60. public virtual void bind(java.net.SocketAddress arg0)
  61. {
  62. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  63. if (!IsClrObject)
  64. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._bind13739, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  65. else
  66. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._bind13739, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  67. }
  68. internal static global::MonoJavaBridge.MethodId _bind13740;
  69. public virtual void bind(java.net.SocketAddress arg0, int arg1)
  70. {
  71. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  72. if (!IsClrObject)
  73. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._bind13740, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
  74. else
  75. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._bind13740, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
  76. }
  77. internal static global::MonoJavaBridge.MethodId _getLocalSocketAddress13741;
  78. public virtual global::java.net.SocketAddress getLocalSocketAddress()
  79. {
  80. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  81. if (!IsClrObject)
  82. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.ServerSocket._getLocalSocketAddress13741)) as java.net.SocketAddress;
  83. else
  84. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getLocalSocketAddress13741)) as java.net.SocketAddress;
  85. }
  86. internal static global::MonoJavaBridge.MethodId _setReceiveBufferSize13742;
  87. public virtual void setReceiveBufferSize(int arg0)
  88. {
  89. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  90. if (!IsClrObject)
  91. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._setReceiveBufferSize13742, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  92. else
  93. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._setReceiveBufferSize13742, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  94. }
  95. internal static global::MonoJavaBridge.MethodId _getReceiveBufferSize13743;
  96. public virtual int getReceiveBufferSize()
  97. {
  98. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  99. if (!IsClrObject)
  100. return @__env.CallIntMethod(this.JvmHandle, global::java.net.ServerSocket._getReceiveBufferSize13743);
  101. else
  102. return @__env.CallNonVirtualIntMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getReceiveBufferSize13743);
  103. }
  104. internal static global::MonoJavaBridge.MethodId _setSoTimeout13744;
  105. public virtual void setSoTimeout(int arg0)
  106. {
  107. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  108. if (!IsClrObject)
  109. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._setSoTimeout13744, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  110. else
  111. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._setSoTimeout13744, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  112. }
  113. internal static global::MonoJavaBridge.MethodId _getSoTimeout13745;
  114. public virtual int getSoTimeout()
  115. {
  116. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  117. if (!IsClrObject)
  118. return @__env.CallIntMethod(this.JvmHandle, global::java.net.ServerSocket._getSoTimeout13745);
  119. else
  120. return @__env.CallNonVirtualIntMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getSoTimeout13745);
  121. }
  122. internal static global::MonoJavaBridge.MethodId _isBound13746;
  123. public virtual bool isBound()
  124. {
  125. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  126. if (!IsClrObject)
  127. return @__env.CallBooleanMethod(this.JvmHandle, global::java.net.ServerSocket._isBound13746);
  128. else
  129. return @__env.CallNonVirtualBooleanMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._isBound13746);
  130. }
  131. internal static global::MonoJavaBridge.MethodId _getInetAddress13747;
  132. public virtual global::java.net.InetAddress getInetAddress()
  133. {
  134. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  135. if (!IsClrObject)
  136. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallObjectMethod(this.JvmHandle, global::java.net.ServerSocket._getInetAddress13747)) as java.net.InetAddress;
  137. else
  138. return global::MonoJavaBridge.JavaBridge.WrapJavaObject(@__env.CallNonVirtualObjectMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getInetAddress13747)) as java.net.InetAddress;
  139. }
  140. internal static global::MonoJavaBridge.MethodId _getLocalPort13748;
  141. public virtual int getLocalPort()
  142. {
  143. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  144. if (!IsClrObject)
  145. return @__env.CallIntMethod(this.JvmHandle, global::java.net.ServerSocket._getLocalPort13748);
  146. else
  147. return @__env.CallNonVirtualIntMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getLocalPort13748);
  148. }
  149. internal static global::MonoJavaBridge.MethodId _setReuseAddress13749;
  150. public virtual void setReuseAddress(bool arg0)
  151. {
  152. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  153. if (!IsClrObject)
  154. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._setReuseAddress13749, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  155. else
  156. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._setReuseAddress13749, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  157. }
  158. internal static global::MonoJavaBridge.MethodId _getReuseAddress13750;
  159. public virtual bool getReuseAddress()
  160. {
  161. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  162. if (!IsClrObject)
  163. return @__env.CallBooleanMethod(this.JvmHandle, global::java.net.ServerSocket._getReuseAddress13750);
  164. else
  165. return @__env.CallNonVirtualBooleanMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._getReuseAddress13750);
  166. }
  167. internal static global::MonoJavaBridge.MethodId _setPerformancePreferences13751;
  168. public virtual void setPerformancePreferences(int arg0, int arg1, int arg2)
  169. {
  170. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  171. if (!IsClrObject)
  172. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._setPerformancePreferences13751, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
  173. else
  174. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._setPerformancePreferences13751, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
  175. }
  176. internal static global::MonoJavaBridge.MethodId _implAccept13752;
  177. protected virtual void implAccept(java.net.Socket arg0)
  178. {
  179. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  180. if (!IsClrObject)
  181. @__env.CallVoidMethod(this.JvmHandle, global::java.net.ServerSocket._implAccept13752, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  182. else
  183. @__env.CallNonVirtualVoidMethod(this.JvmHandle, global::java.net.ServerSocket.staticClass, global::java.net.ServerSocket._implAccept13752, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  184. }
  185. internal static global::MonoJavaBridge.MethodId _setSocketFactory13753;
  186. public static void setSocketFactory(java.net.SocketImplFactory arg0)
  187. {
  188. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  189. @__env.CallStaticVoidMethod(java.net.ServerSocket.staticClass, global::java.net.ServerSocket._setSocketFactory13753, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  190. }
  191. internal static global::MonoJavaBridge.MethodId _ServerSocket13754;
  192. public ServerSocket() : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
  193. {
  194. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  195. global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(java.net.ServerSocket.staticClass, global::java.net.ServerSocket._ServerSocket13754);
  196. Init(@__env, handle);
  197. }
  198. internal static global::MonoJavaBridge.MethodId _ServerSocket13755;
  199. public ServerSocket(int arg0) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
  200. {
  201. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  202. global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(java.net.ServerSocket.staticClass, global::java.net.ServerSocket._ServerSocket13755, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
  203. Init(@__env, handle);
  204. }
  205. internal static global::MonoJavaBridge.MethodId _ServerSocket13756;
  206. public ServerSocket(int arg0, int arg1) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
  207. {
  208. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  209. global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(java.net.ServerSocket.staticClass, global::java.net.ServerSocket._ServerSocket13756, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1));
  210. Init(@__env, handle);
  211. }
  212. internal static global::MonoJavaBridge.MethodId _ServerSocket13757;
  213. public ServerSocket(int arg0, int arg1, java.net.InetAddress arg2) : base(global::MonoJavaBridge.JNIEnv.ThreadEnv)
  214. {
  215. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  216. global::MonoJavaBridge.JniLocalHandle handle = @__env.NewObject(java.net.ServerSocket.staticClass, global::java.net.ServerSocket._ServerSocket13757, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg1), global::MonoJavaBridge.JavaBridge.ConvertToValue(arg2));
  217. Init(@__env, handle);
  218. }
  219. private static void InitJNI()
  220. {
  221. global::MonoJavaBridge.JNIEnv @__env = global::MonoJavaBridge.JNIEnv.ThreadEnv;
  222. global::java.net.ServerSocket.staticClass = @__env.NewGlobalRef(@__env.FindClass("java/net/ServerSocket"));
  223. global::java.net.ServerSocket._toString13734 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "toString", "()Ljava/lang/String;");
  224. global::java.net.ServerSocket._close13735 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "close", "()V");
  225. global::java.net.ServerSocket._accept13736 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "accept", "()Ljava/net/Socket;");
  226. global::java.net.ServerSocket._getChannel13737 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getChannel", "()Ljava/nio/channels/ServerSocketChannel;");
  227. global::java.net.ServerSocket._isClosed13738 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "isClosed", "()Z");
  228. global::java.net.ServerSocket._bind13739 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "bind", "(Ljava/net/SocketAddress;)V");
  229. global::java.net.ServerSocket._bind13740 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "bind", "(Ljava/net/SocketAddress;I)V");
  230. global::java.net.ServerSocket._getLocalSocketAddress13741 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getLocalSocketAddress", "()Ljava/net/SocketAddress;");
  231. global::java.net.ServerSocket._setReceiveBufferSize13742 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "setReceiveBufferSize", "(I)V");
  232. global::java.net.ServerSocket._getReceiveBufferSize13743 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getReceiveBufferSize", "()I");
  233. global::java.net.ServerSocket._setSoTimeout13744 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "setSoTimeout", "(I)V");
  234. global::java.net.ServerSocket._getSoTimeout13745 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getSoTimeout", "()I");
  235. global::java.net.ServerSocket._isBound13746 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "isBound", "()Z");
  236. global::java.net.ServerSocket._getInetAddress13747 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getInetAddress", "()Ljava/net/InetAddress;");
  237. global::java.net.ServerSocket._getLocalPort13748 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getLocalPort", "()I");
  238. global::java.net.ServerSocket._setReuseAddress13749 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "setReuseAddress", "(Z)V");
  239. global::java.net.ServerSocket._getReuseAddress13750 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "getReuseAddress", "()Z");
  240. global::java.net.ServerSocket._setPerformancePreferences13751 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "setPerformancePreferences", "(III)V");
  241. global::java.net.ServerSocket._implAccept13752 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "implAccept", "(Ljava/net/Socket;)V");
  242. global::java.net.ServerSocket._setSocketFactory13753 = @__env.GetStaticMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "setSocketFactory", "(Ljava/net/SocketImplFactory;)V");
  243. global::java.net.ServerSocket._ServerSocket13754 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "<init>", "()V");
  244. global::java.net.ServerSocket._ServerSocket13755 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "<init>", "(I)V");
  245. global::java.net.ServerSocket._ServerSocket13756 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "<init>", "(II)V");
  246. global::java.net.ServerSocket._ServerSocket13757 = @__env.GetMethodIDNoThrow(global::java.net.ServerSocket.staticClass, "<init>", "(IILjava/net/InetAddress;)V");
  247. }
  248. }
  249. }