/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
- // Copyright (C) 2014 dot42
- //
- // Original filename: Java.Net.cs
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- #pragma warning disable 1717
- namespace Java.Net
- {
- /// <summary>
- /// <para>If a HTTP request has to be retried, this exception will be thrown if the request cannot be retried automatically. </para>
- /// </summary>
- /// <java-name>
- /// java/net/HttpRetryException
- /// </java-name>
- [Dot42.DexImport("java/net/HttpRetryException", AccessFlags = 33)]
- public partial class HttpRetryException : global::System.IO.IOException
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Creates a new <c> HttpRetryException </c> instance with the specified response code and the given detail message.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;I)V", AccessFlags = 1)]
- public HttpRetryException(string detail, int code) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;ILjava/lang/String;)V", AccessFlags = 1)]
- public HttpRetryException(string detail, int code, string location) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the location value.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the stored location from the HTTP header. </para>
- /// </returns>
- /// <java-name>
- /// getLocation
- /// </java-name>
- [Dot42.DexImport("getLocation", "()Ljava/lang/String;", AccessFlags = 1)]
- public virtual string GetLocation() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Gets the detail message.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the detail message. </para>
- /// </returns>
- /// <java-name>
- /// getReason
- /// </java-name>
- [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
- public virtual string GetReason() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Gets the response code.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the HTTP response code. </para>
- /// </returns>
- /// <java-name>
- /// responseCode
- /// </java-name>
- [Dot42.DexImport("responseCode", "()I", AccessFlags = 1)]
- public virtual int ResponseCode() /* MethodBuilder.Create */
- {
- return default(int);
- }
- [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
- internal HttpRetryException() /* TypeBuilder.AddDefaultConstructor */
- {
- }
- /// <summary>
- /// <para>Gets the location value.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the stored location from the HTTP header. </para>
- /// </returns>
- /// <java-name>
- /// getLocation
- /// </java-name>
- public string Location
- {
- [Dot42.DexImport("getLocation", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetLocation(); }
- }
- /// <summary>
- /// <para>Gets the detail message.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the detail message. </para>
- /// </returns>
- /// <java-name>
- /// getReason
- /// </java-name>
- public string Reason
- {
- [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetReason(); }
- }
- }
- /// <summary>
- /// <para>A <c> URISyntaxException </c> will be thrown if some information could not be parsed while creating a URI. </para>
- /// </summary>
- /// <java-name>
- /// java/net/URISyntaxException
- /// </java-name>
- [Dot42.DexImport("java/net/URISyntaxException", AccessFlags = 33)]
- public partial class URISyntaxException : global::System.Exception
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;I)V", AccessFlags = 1)]
- public URISyntaxException(string input, string reason, int index) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new <c> URISyntaxException </c> instance containing the string that caused the exception and a description of the problem.</para><para></para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1)]
- public URISyntaxException(string input, string reason) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Gets the index at which the syntax error was found or <c> -1 </c> if the index is unknown/unavailable.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the index of the syntax error. </para>
- /// </returns>
- /// <java-name>
- /// getIndex
- /// </java-name>
- [Dot42.DexImport("getIndex", "()I", AccessFlags = 1)]
- public virtual int GetIndex() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Gets a description of the syntax error.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the string describing the syntax error. </para>
- /// </returns>
- /// <java-name>
- /// getReason
- /// </java-name>
- [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
- public virtual string GetReason() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <para>Gets the initial string that contains an invalid syntax.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the string that caused the exception. </para>
- /// </returns>
- /// <java-name>
- /// getInput
- /// </java-name>
- [Dot42.DexImport("getInput", "()Ljava/lang/String;", AccessFlags = 1)]
- public virtual string GetInput() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <returns>
- /// <para>a sting containing information about the exception. </para>
- /// </returns>
- /// <java-name>
- /// getMessage
- /// </java-name>
- [Dot42.DexImport("getMessage", "()Ljava/lang/String;", AccessFlags = 1)]
- public override string GetMessage() /* MethodBuilder.Create */
- {
- return default(string);
- }
- [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
- internal URISyntaxException() /* TypeBuilder.AddDefaultConstructor */
- {
- }
- /// <summary>
- /// <para>Gets the index at which the syntax error was found or <c> -1 </c> if the index is unknown/unavailable.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the index of the syntax error. </para>
- /// </returns>
- /// <java-name>
- /// getIndex
- /// </java-name>
- public int Index
- {
- [Dot42.DexImport("getIndex", "()I", AccessFlags = 1)]
- get{ return GetIndex(); }
- }
- /// <summary>
- /// <para>Gets a description of the syntax error.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the string describing the syntax error. </para>
- /// </returns>
- /// <java-name>
- /// getReason
- /// </java-name>
- public string Reason
- {
- [Dot42.DexImport("getReason", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetReason(); }
- }
- /// <summary>
- /// <para>Gets the initial string that contains an invalid syntax.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the string that caused the exception. </para>
- /// </returns>
- /// <java-name>
- /// getInput
- /// </java-name>
- public string Input
- {
- [Dot42.DexImport("getInput", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetInput(); }
- }
- }
- /// <summary>
- /// <para>Legacy security code; do not use. </para>
- /// </summary>
- /// <java-name>
- /// java/net/NetPermission
- /// </java-name>
- [Dot42.DexImport("java/net/NetPermission", AccessFlags = 49)]
- public sealed partial class NetPermission : global::Java.Security.BasicPermission
- /* scope: __dot42__ */
- {
- [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
- public NetPermission(string name) /* MethodBuilder.Create */
- {
- }
- [Dot42.DexImport("<init>", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1)]
- public NetPermission(string name, string actions) /* MethodBuilder.Create */
- {
- }
- /// <java-name>
- /// getActions
- /// </java-name>
- [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
- public override string GetActions() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <java-name>
- /// implies
- /// </java-name>
- [Dot42.DexImport("implies", "(Ljava/security/Permission;)Z", AccessFlags = 1)]
- public override bool Implies(global::Java.Security.Permission permission) /* MethodBuilder.Create */
- {
- return default(bool);
- }
- [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
- internal NetPermission() /* TypeBuilder.AddDefaultConstructor */
- {
- }
- /// <java-name>
- /// getActions
- /// </java-name>
- public string Actions
- {
- [Dot42.DexImport("getActions", "()Ljava/lang/String;", AccessFlags = 1)]
- get{ return GetActions(); }
- }
- }
- /// <summary>
- /// <para>This interface defines a factory for socket implementations. </para>
- /// </summary>
- /// <java-name>
- /// java/net/SocketImplFactory
- /// </java-name>
- [Dot42.DexImport("java/net/SocketImplFactory", AccessFlags = 1537)]
- public partial interface ISocketImplFactory
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Creates a new <c> SocketImpl </c> instance.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the created <c> SocketImpl </c> instance. </para>
- /// </returns>
- /// <java-name>
- /// createSocketImpl
- /// </java-name>
- [Dot42.DexImport("createSocketImpl", "()Ljava/net/SocketImpl;", AccessFlags = 1025)]
- global::Java.Net.SocketImpl CreateSocketImpl() /* MethodBuilder.Create */ ;
- }
- /// <summary>
- /// <para>Provides a client-side TCP socket. </para>
- /// </summary>
- /// <java-name>
- /// java/net/Socket
- /// </java-name>
- [Dot42.DexImport("java/net/Socket", AccessFlags = 33)]
- public partial class Socket
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public Socket() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/net/Proxy;)V", AccessFlags = 1)]
- public Socket(global::Java.Net.Proxy proxy) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;I)V", AccessFlags = 1)]
- public Socket(string dstAddress, int dstPort) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;ILjava/net/InetAddress;I)V", AccessFlags = 1)]
- public Socket(string dstAddress, int dstPort, global::Java.Net.InetAddress localAddress, int localPort) /* MethodBuilder.Create */
- {
- }
- [Dot42.DexImport("<init>", "(Ljava/lang/String;IZ)V", AccessFlags = 1)]
- public Socket(string @string, int int32, bool boolean) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;I)V", AccessFlags = 1)]
- public Socket(global::Java.Net.InetAddress dstAddress, int dstPort) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)V", AccessFlags = 1)]
- public Socket(global::Java.Net.InetAddress dstAddress, int dstPort, global::Java.Net.InetAddress localAddress, int localPort) /* MethodBuilder.Create */
- {
- }
- [Dot42.DexImport("<init>", "(Ljava/net/InetAddress;IZ)V", AccessFlags = 1)]
- public Socket(global::Java.Net.InetAddress inetAddress, int int32, bool boolean) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/net/SocketImpl;)V", AccessFlags = 4)]
- protected internal Socket(global::Java.Net.SocketImpl proxy) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// close
- /// </java-name>
- [Dot42.DexImport("close", "()V", AccessFlags = 33)]
- public virtual void Close() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns the IP address of the target host this socket is connected to, or null if this socket is not yet connected. </para>
- /// </summary>
- /// <java-name>
- /// getInetAddress
- /// </java-name>
- [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.InetAddress GetInetAddress() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.InetAddress);
- }
- /// <summary>
- /// <para>Returns an input stream to read data from this socket.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the byte-oriented input stream. </para>
- /// </returns>
- /// <java-name>
- /// getInputStream
- /// </java-name>
- [Dot42.DexImport("getInputStream", "()Ljava/io/InputStream;", AccessFlags = 1)]
- public virtual global::Java.Io.InputStream GetInputStream() /* MethodBuilder.Create */
- {
- return default(global::Java.Io.InputStream);
- }
- /// <summary>
- /// <para>Returns this socket's SocketOptions#SO_KEEPALIVE setting. </para>
- /// </summary>
- /// <java-name>
- /// getKeepAlive
- /// </java-name>
- [Dot42.DexImport("getKeepAlive", "()Z", AccessFlags = 1)]
- public virtual bool GetKeepAlive() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns the local IP address this socket is bound to, or <c> InetAddress.ANY </c> if the socket is unbound. </para>
- /// </summary>
- /// <java-name>
- /// getLocalAddress
- /// </java-name>
- [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.InetAddress GetLocalAddress() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.InetAddress);
- }
- /// <summary>
- /// <para>Returns the local port this socket is bound to, or -1 if the socket is unbound. </para>
- /// </summary>
- /// <java-name>
- /// getLocalPort
- /// </java-name>
- [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
- public virtual int GetLocalPort() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns an output stream to write data into this socket.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the byte-oriented output stream. </para>
- /// </returns>
- /// <java-name>
- /// getOutputStream
- /// </java-name>
- [Dot42.DexImport("getOutputStream", "()Ljava/io/OutputStream;", AccessFlags = 1)]
- public virtual global::Java.Io.OutputStream GetOutputStream() /* MethodBuilder.Create */
- {
- return default(global::Java.Io.OutputStream);
- }
- /// <summary>
- /// <para>Returns the port number of the target host this socket is connected to, or 0 if this socket is not yet connected. </para>
- /// </summary>
- /// <java-name>
- /// getPort
- /// </java-name>
- [Dot42.DexImport("getPort", "()I", AccessFlags = 1)]
- public virtual int GetPort() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns this socket's linger timeout in seconds, or -1 for no linger (i.e. <c> close </c> will return immediately). </para>
- /// </summary>
- /// <java-name>
- /// getSoLinger
- /// </java-name>
- [Dot42.DexImport("getSoLinger", "()I", AccessFlags = 1)]
- public virtual int GetSoLinger() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns this socket's receive buffer size. </para>
- /// </summary>
- /// <java-name>
- /// getReceiveBufferSize
- /// </java-name>
- [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 33)]
- public virtual int GetReceiveBufferSize() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns this socket's send buffer size. </para>
- /// </summary>
- /// <java-name>
- /// getSendBufferSize
- /// </java-name>
- [Dot42.DexImport("getSendBufferSize", "()I", AccessFlags = 33)]
- public virtual int GetSendBufferSize() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns this socket's receive timeout. </para>
- /// </summary>
- /// <java-name>
- /// getSoTimeout
- /// </java-name>
- [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
- public virtual int GetSoTimeout() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <para>Returns this socket's <c> SocketOptions#TCP_NODELAY </c> setting. </para>
- /// </summary>
- /// <java-name>
- /// getTcpNoDelay
- /// </java-name>
- [Dot42.DexImport("getTcpNoDelay", "()Z", AccessFlags = 1)]
- public virtual bool GetTcpNoDelay() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Sets this socket's SocketOptions#SO_KEEPALIVE option. </para>
- /// </summary>
- /// <java-name>
- /// setKeepAlive
- /// </java-name>
- [Dot42.DexImport("setKeepAlive", "(Z)V", AccessFlags = 1)]
- public virtual void SetKeepAlive(bool keepAlive) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets the internal factory for creating socket implementations. This may only be executed once during the lifetime of the application.</para><para></para>
- /// </summary>
- /// <java-name>
- /// setSocketImplFactory
- /// </java-name>
- [Dot42.DexImport("setSocketImplFactory", "(Ljava/net/SocketImplFactory;)V", AccessFlags = 41)]
- public static void SetSocketImplFactory(global::Java.Net.ISocketImplFactory fac) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets this socket's send buffer size. </para>
- /// </summary>
- /// <java-name>
- /// setSendBufferSize
- /// </java-name>
- [Dot42.DexImport("setSendBufferSize", "(I)V", AccessFlags = 33)]
- public virtual void SetSendBufferSize(int size) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets this socket's receive buffer size. </para>
- /// </summary>
- /// <java-name>
- /// setReceiveBufferSize
- /// </java-name>
- [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 33)]
- public virtual void SetReceiveBufferSize(int size) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets this socket's linger timeout in seconds. If <c> on </c> is false, <c> timeout </c> is irrelevant. </para>
- /// </summary>
- /// <java-name>
- /// setSoLinger
- /// </java-name>
- [Dot42.DexImport("setSoLinger", "(ZI)V", AccessFlags = 1)]
- public virtual void SetSoLinger(bool on, int timeout) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// setSoTimeout
- /// </java-name>
- [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
- public virtual void SetSoTimeout(int timeout) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Sets this socket's SocketOptions#TCP_NODELAY option. </para>
- /// </summary>
- /// <java-name>
- /// setTcpNoDelay
- /// </java-name>
- [Dot42.DexImport("setTcpNoDelay", "(Z)V", AccessFlags = 1)]
- public virtual void SetTcpNoDelay(bool on) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns a <c> String </c> containing a concise, human-readable description of the socket.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the textual representation of this socket. </para>
- /// </returns>
- /// <java-name>
- /// toString
- /// </java-name>
- [Dot42.DexImport("toString", "()Ljava/lang/String;", AccessFlags = 1)]
- public override string ToString() /* MethodBuilder.Create */
- {
- return default(string);
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// shutdownInput
- /// </java-name>
- [Dot42.DexImport("shutdownInput", "()V", AccessFlags = 1)]
- public virtual void ShutdownInput() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// shutdownOutput
- /// </java-name>
- [Dot42.DexImport("shutdownOutput", "()V", AccessFlags = 1)]
- public virtual void ShutdownOutput() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// getLocalSocketAddress
- /// </java-name>
- [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.SocketAddress GetLocalSocketAddress() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.SocketAddress);
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <returns>
- /// <para>the remote socket address and port. </para>
- /// </returns>
- /// <java-name>
- /// getRemoteSocketAddress
- /// </java-name>
- [Dot42.DexImport("getRemoteSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- public virtual global::Java.Net.SocketAddress GetRemoteSocketAddress() /* MethodBuilder.Create */
- {
- return default(global::Java.Net.SocketAddress);
- }
- /// <summary>
- /// <para>Returns whether this socket is bound to a local address and port.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the socket is bound to a local address, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isBound
- /// </java-name>
- [Dot42.DexImport("isBound", "()Z", AccessFlags = 1)]
- public virtual bool IsBound() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns whether this socket is connected to a remote host.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the socket is connected, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isConnected
- /// </java-name>
- [Dot42.DexImport("isConnected", "()Z", AccessFlags = 1)]
- public virtual bool IsConnected() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns whether this socket is closed.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if the socket is closed, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isClosed
- /// </java-name>
- [Dot42.DexImport("isClosed", "()Z", AccessFlags = 1)]
- public virtual bool IsClosed() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// bind
- /// </java-name>
- [Dot42.DexImport("bind", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
- public virtual void Bind(global::Java.Net.SocketAddress localAddr) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Connects this socket to the given remote host address and port specified by the SocketAddress <c> remoteAddr </c> .</para><para></para>
- /// </summary>
- /// <java-name>
- /// connect
- /// </java-name>
- [Dot42.DexImport("connect", "(Ljava/net/SocketAddress;)V", AccessFlags = 1)]
- public virtual void Connect(global::Java.Net.SocketAddress remoteAddr) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// connect
- /// </java-name>
- [Dot42.DexImport("connect", "(Ljava/net/SocketAddress;I)V", AccessFlags = 1)]
- public virtual void Connect(global::Java.Net.SocketAddress remoteAddr, int timeout) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns whether the incoming channel of the socket has already been closed.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if reading from this socket is not possible anymore, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isInputShutdown
- /// </java-name>
- [Dot42.DexImport("isInputShutdown", "()Z", AccessFlags = 1)]
- public virtual bool IsInputShutdown() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Returns whether the outgoing channel of the socket has already been closed.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para><c> true </c> if writing to this socket is not possible anymore, <c> false </c> otherwise. </para>
- /// </returns>
- /// <java-name>
- /// isOutputShutdown
- /// </java-name>
- [Dot42.DexImport("isOutputShutdown", "()Z", AccessFlags = 1)]
- public virtual bool IsOutputShutdown() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Sets this socket's SocketOptions#SO_REUSEADDR option. </para>
- /// </summary>
- /// <java-name>
- /// setReuseAddress
- /// </java-name>
- [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
- public virtual void SetReuseAddress(bool reuse) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns this socket's SocketOptions#SO_REUSEADDR setting. </para>
- /// </summary>
- /// <java-name>
- /// getReuseAddress
- /// </java-name>
- [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
- public virtual bool GetReuseAddress() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Sets this socket's SocketOptions#SO_OOBINLINE option. </para>
- /// </summary>
- /// <java-name>
- /// setOOBInline
- /// </java-name>
- [Dot42.DexImport("setOOBInline", "(Z)V", AccessFlags = 1)]
- public virtual void SetOOBInline(bool oobinline) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns this socket's SocketOptions#SO_OOBINLINE setting. </para>
- /// </summary>
- /// <java-name>
- /// getOOBInline
- /// </java-name>
- [Dot42.DexImport("getOOBInline", "()Z", AccessFlags = 1)]
- public virtual bool GetOOBInline() /* MethodBuilder.Create */
- {
- return default(bool);
- }
- /// <summary>
- /// <para>Sets this socket's SocketOptions#IP_TOS value for every packet sent by this socket. </para>
- /// </summary>
- /// <java-name>
- /// setTrafficClass
- /// </java-name>
- [Dot42.DexImport("setTrafficClass", "(I)V", AccessFlags = 1)]
- public virtual void SetTrafficClass(int value) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns this socket's {<para>SocketOptions::IP_TOS} setting. </para></para>
- /// </summary>
- /// <java-name>
- /// getTrafficClass
- /// </java-name>
- [Dot42.DexImport("getTrafficClass", "()I", AccessFlags = 1)]
- public virtual int GetTrafficClass() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// sendUrgentData
- /// </java-name>
- [Dot42.DexImport("sendUrgentData", "(I)V", AccessFlags = 1)]
- public virtual void SendUrgentData(int value) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// getChannel
- /// </java-name>
- [Dot42.DexImport("getChannel", "()Ljava/nio/channels/SocketChannel;", AccessFlags = 1)]
- public virtual global::Java.Nio.Channels.SocketChannel GetChannel() /* MethodBuilder.Create */
- {
- return default(global::Java.Nio.Channels.SocketChannel);
- }
- /// <summary>
- /// <para>Sets performance preferences for connectionTime, latency and bandwidth.</para><para>This method does currently nothing.</para><para></para>
- /// </summary>
- /// <java-name>
- /// setPerformancePreferences
- /// </java-name>
- [Dot42.DexImport("setPerformancePreferences", "(III)V", AccessFlags = 1)]
- public virtual void SetPerformancePreferences(int connectionTime, int latency, int bandwidth) /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Returns the IP address of the target host this socket is connected to, or null if this socket is not yet connected. </para>
- /// </summary>
- /// <java-name>
- /// getInetAddress
- /// </java-name>
- public global::Java.Net.InetAddress InetAddress
- {
- [Dot42.DexImport("getInetAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
- get{ return GetInetAddress(); }
- }
- /// <summary>
- /// <para>Returns an input stream to read data from this socket.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the byte-oriented input stream. </para>
- /// </returns>
- /// <java-name>
- /// getInputStream
- /// </java-name>
- public global::Java.Io.InputStream InputStream
- {
- [Dot42.DexImport("getInputStream", "()Ljava/io/InputStream;", AccessFlags = 1)]
- get{ return GetInputStream(); }
- }
- /// <summary>
- /// <para>Returns this socket's SocketOptions#SO_KEEPALIVE setting. </para>
- /// </summary>
- /// <java-name>
- /// getKeepAlive
- /// </java-name>
- public bool IsKeepAlive
- {
- [Dot42.DexImport("getKeepAlive", "()Z", AccessFlags = 1)]
- get{ return GetKeepAlive(); }
- [Dot42.DexImport("setKeepAlive", "(Z)V", AccessFlags = 1)]
- set{ SetKeepAlive(value); }
- }
- /// <summary>
- /// <para>Returns the local IP address this socket is bound to, or <c> InetAddress.ANY </c> if the socket is unbound. </para>
- /// </summary>
- /// <java-name>
- /// getLocalAddress
- /// </java-name>
- public global::Java.Net.InetAddress LocalAddress
- {
- [Dot42.DexImport("getLocalAddress", "()Ljava/net/InetAddress;", AccessFlags = 1)]
- get{ return GetLocalAddress(); }
- }
- /// <summary>
- /// <para>Returns the local port this socket is bound to, or -1 if the socket is unbound. </para>
- /// </summary>
- /// <java-name>
- /// getLocalPort
- /// </java-name>
- public int LocalPort
- {
- [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 1)]
- get{ return GetLocalPort(); }
- }
- /// <summary>
- /// <para>Returns an output stream to write data into this socket.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the byte-oriented output stream. </para>
- /// </returns>
- /// <java-name>
- /// getOutputStream
- /// </java-name>
- public global::Java.Io.OutputStream OutputStream
- {
- [Dot42.DexImport("getOutputStream", "()Ljava/io/OutputStream;", AccessFlags = 1)]
- get{ return GetOutputStream(); }
- }
- /// <summary>
- /// <para>Returns the port number of the target host this socket is connected to, or 0 if this socket is not yet connected. </para>
- /// </summary>
- /// <java-name>
- /// getPort
- /// </java-name>
- public int Port
- {
- [Dot42.DexImport("getPort", "()I", AccessFlags = 1)]
- get{ return GetPort(); }
- }
- /// <summary>
- /// <para>Returns this socket's linger timeout in seconds, or -1 for no linger (i.e. <c> close </c> will return immediately). </para>
- /// </summary>
- /// <java-name>
- /// getSoLinger
- /// </java-name>
- public int SoLinger
- {
- [Dot42.DexImport("getSoLinger", "()I", AccessFlags = 1)]
- get{ return GetSoLinger(); }
- }
- /// <summary>
- /// <para>Returns this socket's receive buffer size. </para>
- /// </summary>
- /// <java-name>
- /// getReceiveBufferSize
- /// </java-name>
- public int ReceiveBufferSize
- {
- [Dot42.DexImport("getReceiveBufferSize", "()I", AccessFlags = 33)]
- get{ return GetReceiveBufferSize(); }
- [Dot42.DexImport("setReceiveBufferSize", "(I)V", AccessFlags = 33)]
- set{ SetReceiveBufferSize(value); }
- }
- /// <summary>
- /// <para>Returns this socket's send buffer size. </para>
- /// </summary>
- /// <java-name>
- /// getSendBufferSize
- /// </java-name>
- public int SendBufferSize
- {
- [Dot42.DexImport("getSendBufferSize", "()I", AccessFlags = 33)]
- get{ return GetSendBufferSize(); }
- [Dot42.DexImport("setSendBufferSize", "(I)V", AccessFlags = 33)]
- set{ SetSendBufferSize(value); }
- }
- /// <summary>
- /// <para>Returns this socket's receive timeout. </para>
- /// </summary>
- /// <java-name>
- /// getSoTimeout
- /// </java-name>
- public int SoTimeout
- {
- [Dot42.DexImport("getSoTimeout", "()I", AccessFlags = 33)]
- get{ return GetSoTimeout(); }
- [Dot42.DexImport("setSoTimeout", "(I)V", AccessFlags = 33)]
- set{ SetSoTimeout(value); }
- }
- /// <summary>
- /// <para>Returns this socket's <c> SocketOptions#TCP_NODELAY </c> setting. </para>
- /// </summary>
- /// <java-name>
- /// getTcpNoDelay
- /// </java-name>
- public bool IsTcpNoDelay
- {
- [Dot42.DexImport("getTcpNoDelay", "()Z", AccessFlags = 1)]
- get{ return GetTcpNoDelay(); }
- [Dot42.DexImport("setTcpNoDelay", "(Z)V", AccessFlags = 1)]
- set{ SetTcpNoDelay(value); }
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// getLocalSocketAddress
- /// </java-name>
- public global::Java.Net.SocketAddress LocalSocketAddress
- {
- [Dot42.DexImport("getLocalSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- get{ return GetLocalSocketAddress(); }
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <returns>
- /// <para>the remote socket address and port. </para>
- /// </returns>
- /// <java-name>
- /// getRemoteSocketAddress
- /// </java-name>
- public global::Java.Net.SocketAddress RemoteSocketAddress
- {
- [Dot42.DexImport("getRemoteSocketAddress", "()Ljava/net/SocketAddress;", AccessFlags = 1)]
- get{ return GetRemoteSocketAddress(); }
- }
- /// <summary>
- /// <para>Returns this socket's SocketOptions#SO_REUSEADDR setting. </para>
- /// </summary>
- /// <java-name>
- /// getReuseAddress
- /// </java-name>
- public bool IsReuseAddress
- {
- [Dot42.DexImport("getReuseAddress", "()Z", AccessFlags = 1)]
- get{ return GetReuseAddress(); }
- [Dot42.DexImport("setReuseAddress", "(Z)V", AccessFlags = 1)]
- set{ SetReuseAddress(value); }
- }
- /// <summary>
- /// <para>Returns this socket's SocketOptions#SO_OOBINLINE setting. </para>
- /// </summary>
- /// <java-name>
- /// getOOBInline
- /// </java-name>
- public bool IsOOBInline
- {
- [Dot42.DexImport("getOOBInline", "()Z", AccessFlags = 1)]
- get{ return GetOOBInline(); }
- [Dot42.DexImport("setOOBInline", "(Z)V", AccessFlags = 1)]
- set{ SetOOBInline(value); }
- }
- /// <summary>
- /// <para>Returns this socket's {<para>SocketOptions::IP_TOS} setting. </para></para>
- /// </summary>
- /// <java-name>
- /// getTrafficClass
- /// </java-name>
- public int TrafficClass
- {
- [Dot42.DexImport("getTrafficClass", "()I", AccessFlags = 1)]
- get{ return GetTrafficClass(); }
- [Dot42.DexImport("setTrafficClass", "(I)V", AccessFlags = 1)]
- set{ SetTrafficClass(value); }
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// getChannel
- /// </java-name>
- public global::Java.Nio.Channels.SocketChannel Channel
- {
- [Dot42.DexImport("getChannel", "()Ljava/nio/channels/SocketChannel;", AccessFlags = 1)]
- get{ return GetChannel(); }
- }
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// java/net/BindException
- /// </java-name>
- [Dot42.DexImport("java/net/BindException", AccessFlags = 33)]
- public partial class BindException : global::Java.Net.SocketException
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new instance. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public BindException() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new instance with the given detail message. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
- public BindException(string detailMessage) /* MethodBuilder.Create */
- {
- }
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// java/net/ProtocolException
- /// </java-name>
- [Dot42.DexImport("java/net/ProtocolException", AccessFlags = 33)]
- public partial class ProtocolException : global::System.IO.IOException
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>Constructs a new instance. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public ProtocolException() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <para>Constructs a new instance with the given detail message. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
- public ProtocolException(string detailMessage) /* MethodBuilder.Create */
- {
- }
- }
- /// <summary>
- /// <para>The abstract superclass for datagram and multicast socket implementations. </para>
- /// </summary>
- /// <java-name>
- /// java/net/DatagramSocketImpl
- /// </java-name>
- [Dot42.DexImport("java/net/DatagramSocketImpl", AccessFlags = 1057)]
- public abstract partial class DatagramSocketImpl : global::Java.Net.ISocketOptions
- /* scope: __dot42__ */
- {
- /// <summary>
- /// <para>File descriptor that is used to address this socket. </para>
- /// </summary>
- /// <java-name>
- /// fd
- /// </java-name>
- [Dot42.DexImport("fd", "Ljava/io/FileDescriptor;", AccessFlags = 4)]
- protected internal global::Java.Io.FileDescriptor Fd;
- /// <summary>
- /// <para>The number of the local port to which this socket is bound. </para>
- /// </summary>
- /// <java-name>
- /// localPort
- /// </java-name>
- [Dot42.DexImport("localPort", "I", AccessFlags = 4)]
- protected internal int LocalPort;
- /// <summary>
- /// <para>Constructs an unbound datagram socket implementation. </para>
- /// </summary>
- [Dot42.DexImport("<init>", "()V", AccessFlags = 1)]
- public DatagramSocketImpl() /* MethodBuilder.Create */
- {
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <java-name>
- /// bind
- /// </java-name>
- [Dot42.DexImport("bind", "(ILjava/net/InetAddress;)V", AccessFlags = 1028)]
- protected internal abstract void Bind(int port, global::Java.Net.InetAddress addr) /* MethodBuilder.Create */ ;
- /// <summary>
- /// <para>Closes this socket. </para>
- /// </summary>
- /// <java-name>
- /// close
- /// </java-name>
- [Dot42.DexImport("close", "()V", AccessFlags = 1028)]
- protected internal abstract void Close() /* MethodBuilder.Create */ ;
- /// <summary>
- /// <para>This method allocates the socket descriptor in the underlying operating system.</para><para></para>
- /// </summary>
- /// <java-name>
- /// create
- /// </java-name>
- [Dot42.DexImport("create", "()V", AccessFlags = 1028)]
- protected internal abstract void Create() /* MethodBuilder.Create */ ;
- /// <summary>
- /// <para>Gets the <c> FileDescriptor </c> of this datagram socket, which is invalid if the socket is closed or not bound.</para><para></para>
- /// </summary>
- /// <returns>
- /// <para>the current file descriptor of this socket. </para>
- /// </returns>
- /// <java-name>
- /// getFileDescriptor
- /// </java-name>
- [Dot42.DexImport("getFileDescriptor", "()Ljava/io/FileDescriptor;", AccessFlags = 4)]
- protected internal virtual global::Java.Io.FileDescriptor GetFileDescriptor() /* MethodBuilder.Create */
- {
- return default(global::Java.Io.FileDescriptor);
- }
- /// <summary>
- /// <para>Returns the local port to which this socket is bound. </para>
- /// </summary>
- /// <java-name>
- /// getLocalPort
- /// </java-name>
- [Dot42.DexImport("getLocalPort", "()I", AccessFlags = 4)]
- protected internal virtual int GetLocalPort() /* MethodBuilder.Create */
- {
- return default(int);
- }
- /// <summary>
- /// <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>
- /// </summary>
- /// <returns>
- /// <para>the time-to-live option as a byte value. </para>
- /// </returns>
- /// <java-name>
- /// getTTL
- /// </java-name>
- [Dot42.DexImport("getTTL", "()B", AccessFlags = 1028)]
- protected internal abstract sbyte JavaGetTTL() /* MethodBuilder.Create */ ;
- /// <summary>
- /// <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>
- /// </summary>
- /// <returns>
- /// <para>the time-to-live option as a byte value. </para>
- /// </returns>
- /// <java-name>
- /// getTTL
- /// </java-name>
- [Dot42.DexImport("getTTL", "()B", AccessFlags = 1028, IgnoreFromJava = true)]
- protected internal abstract byte GetTTL() /* MethodBuilder.Create */ ;
- /// <summary>
- /// <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>
- /// </summary>