Class ServerSocket
public class ServerSocket : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AutoCloseable>ServerSocket
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])JVMBridgeBase<AutoCloseable>.DynBridgeClazzJVMBridgeBase<AutoCloseable>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
ServerSocket()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public ServerSocket()
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
arg0
intarg1
intarg2
InetAddress
Exceptions
ServerSocket(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public ServerSocket(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
Channel
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#getChannel()
public ServerSocketChannel Channel { get; }
Property Value
InetAddress
public InetAddress InetAddress { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
LocalPort
public int LocalPort { get; }
Property Value
LocalSocketAddress
public SocketAddress LocalSocketAddress { get; }
Property Value
ReceiveBufferSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#getReceiveBufferSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#setReceiveBufferSize(int)
public int ReceiveBufferSize { get; set; }
Property Value
ReuseAddress
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#getReuseAddress() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#setReuseAddress(boolean)
public bool ReuseAddress { get; set; }
Property Value
SoTimeout
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#getSoTimeout() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/ServerSocket.html#setSoTimeout(int)
public int SoTimeout { get; set; }
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
arg0
SocketAddressarg1
int
Exceptions
Close()
public void Close()
Exceptions
GetOption<T>(SocketOption<T>)
public T GetOption<T>(SocketOption<T> arg0)
Parameters
arg0
SocketOption<T>
Returns
- T
T
Type Parameters
T
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
arg0
SocketOption<T>arg1
TT
Returns
Type Parameters
T
Exceptions
SetPerformancePreferences(int, int, int)
public void SetPerformancePreferences(int arg0, int arg1, int arg2)
Parameters
SetSocketFactory(SocketImplFactory)
public static void SetSocketFactory(SocketImplFactory arg0)
Parameters
Exceptions
SupportedOptions()
public Set<SocketOption<object>> SupportedOptions()