Class ServerSocket
public class ServerSocket : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ICloseable, IAutoCloseable
- Inheritance
-
ServerSocket
- Implements
- Derived
- Extension Methods
Constructors
ServerSocket()
public ServerSocket()
Exceptions
ServerSocket(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public ServerSocket(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
ServerSocket(int)
public ServerSocket(int arg0)
Parameters
Exceptions
ServerSocket(int, int)
public ServerSocket(int arg0, int arg1)
Parameters
Exceptions
ServerSocket(int, int, InetAddress)
public ServerSocket(int arg0, int arg1, InetAddress arg2)
Parameters
arg0intarg1intarg2InetAddress
Exceptions
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Methods
Accept()
public Socket Accept()
Returns
Exceptions
Bind(SocketAddress)
public void Bind(SocketAddress arg0)
Parameters
Exceptions
Bind(SocketAddress, int)
public void Bind(SocketAddress arg0, int arg1)
Parameters
arg0SocketAddressarg1int
Exceptions
Close()
public void Close()
Exceptions
CreatePoolableInstance()
HPA initializer for ServerSocket()
public static ServerSocket CreatePoolableInstance()
Returns
CreatePoolableInstance(int)
HPA initializer for ServerSocket(int arg0)
public static ServerSocket CreatePoolableInstance(int arg0)
Parameters
arg0int
Returns
CreatePoolableInstance(int, int)
HPA initializer for ServerSocket(int arg0, int arg1)
public static ServerSocket CreatePoolableInstance(int arg0, int arg1)
Parameters
Returns
CreatePoolableInstance(int, int, InetAddress)
HPA initializer for ServerSocket(int arg0, int arg1, Java.Net.InetAddress arg2)
public static ServerSocket CreatePoolableInstance(int arg0, int arg1, InetAddress arg2)
Parameters
arg0intarg1intarg2InetAddress
Returns
GetChannel()
public ServerSocketChannel GetChannel()
Returns
GetInetAddress()
public InetAddress GetInetAddress()
Returns
GetLocalPort()
public int GetLocalPort()
Returns
GetLocalSocketAddress()
public SocketAddress GetLocalSocketAddress()
Returns
GetOption<T>(SocketOption<T>)
public T GetOption<T>(SocketOption<T> arg0)
Parameters
arg0SocketOption<T>
Returns
- T
T
Type Parameters
T
Exceptions
GetReceiveBufferSize()
public int GetReceiveBufferSize()
Returns
Exceptions
GetReuseAddress()
public bool GetReuseAddress()
Returns
Exceptions
GetSoTimeout()
public int GetSoTimeout()
Returns
Exceptions
IsBound()
public bool IsBound()
Returns
IsClosed()
public bool IsClosed()
Returns
SetOption<T>(SocketOption<T>, T)
public ServerSocket SetOption<T>(SocketOption<T> arg0, T arg1)
Parameters
arg0SocketOption<T>arg1TT
Returns
Type Parameters
T
Exceptions
SetPerformancePreferences(int, int, int)
public void SetPerformancePreferences(int arg0, int arg1, int arg2)
Parameters
SetReceiveBufferSize(int)
public void SetReceiveBufferSize(int arg0)
Parameters
Exceptions
SetReuseAddress(bool)
public void SetReuseAddress(bool arg0)
Parameters
Exceptions
SetSoTimeout(int)
public void SetSoTimeout(int arg0)
Parameters
Exceptions
SetSocketFactory(SocketImplFactory)
[Obsolete("Deprecated in JVM")]
public static void SetSocketFactory(SocketImplFactory arg0)
Parameters
Exceptions
SupportedOptions()
public Set<SocketOption<object>> SupportedOptions()