Class Socket
public class Socket : Closeable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ICloseable, IAutoCloseable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AutoCloseable>Socket
- 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
Socket()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Socket()
Socket(String, int)
public Socket(String arg0, int arg1)
Parameters
Exceptions
Socket(String, int, InetAddress, int)
public Socket(String arg0, int arg1, InetAddress arg2, int arg3)
Parameters
arg0
Stringarg1
intarg2
InetAddressarg3
int
Exceptions
Socket(InetAddress, int)
public Socket(InetAddress arg0, int arg1)
Parameters
arg0
InetAddressarg1
int
Exceptions
Socket(InetAddress, int, InetAddress, int)
public Socket(InetAddress arg0, int arg1, InetAddress arg2, int arg3)
Parameters
arg0
InetAddressarg1
intarg2
InetAddressarg3
int
Exceptions
Socket(Proxy)
public Socket(Proxy arg0)
Parameters
Socket(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 Socket(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
public SocketChannel Channel { get; }
Property Value
InetAddress
public InetAddress InetAddress { get; }
Property Value
InputStream
public InputStream InputStream { 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
KeepAlive
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getKeepAlive() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setKeepAlive(boolean)
public bool KeepAlive { get; set; }
Property Value
LocalAddress
public InetAddress LocalAddress { get; }
Property Value
LocalPort
public int LocalPort { get; }
Property Value
LocalSocketAddress
public SocketAddress LocalSocketAddress { get; }
Property Value
OOBInline
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getOOBInline() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setOOBInline(boolean)
public bool OOBInline { get; set; }
Property Value
OutputStream
public OutputStream OutputStream { get; }
Property Value
Port
public int Port { get; }
Property Value
ReceiveBufferSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getReceiveBufferSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setReceiveBufferSize(int)
public int ReceiveBufferSize { get; set; }
Property Value
RemoteSocketAddress
public SocketAddress RemoteSocketAddress { get; }
Property Value
ReuseAddress
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getReuseAddress() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setReuseAddress(boolean)
public bool ReuseAddress { get; set; }
Property Value
SendBufferSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getSendBufferSize() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setSendBufferSize(int)
public int SendBufferSize { get; set; }
Property Value
SoLinger
public int SoLinger { get; }
Property Value
SoTimeout
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getSoTimeout() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setSoTimeout(int)
public int SoTimeout { get; set; }
Property Value
TcpNoDelay
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getTcpNoDelay() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setTcpNoDelay(boolean)
public bool TcpNoDelay { get; set; }
Property Value
TrafficClass
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#getTrafficClass() https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#setTrafficClass(int)
public int TrafficClass { get; set; }
Property Value
Methods
Bind(SocketAddress)
public void Bind(SocketAddress arg0)
Parameters
Exceptions
Close()
public void Close()
Exceptions
Connect(SocketAddress)
public void Connect(SocketAddress arg0)
Parameters
Exceptions
Connect(SocketAddress, int)
public void Connect(SocketAddress arg0, int arg1)
Parameters
arg0
SocketAddressarg1
int
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
IsConnected()
public bool IsConnected()
Returns
IsInputShutdown()
public bool IsInputShutdown()
Returns
IsOutputShutdown()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#isOutputShutdown()
public bool IsOutputShutdown()
Returns
SendUrgentData(int)
public void SendUrgentData(int arg0)
Parameters
Exceptions
SetOption<T>(SocketOption<T>, T)
public Socket 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
SetSoLinger(bool, int)
public void SetSoLinger(bool arg0, int arg1)
Parameters
Exceptions
SetSocketImplFactory(SocketImplFactory)
public static void SetSocketImplFactory(SocketImplFactory arg0)
Parameters
Exceptions
ShutdownInput()
public void ShutdownInput()
Exceptions
ShutdownOutput()
public void ShutdownOutput()
Exceptions
SupportedOptions()
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/Socket.html#supportedOptions()
public Set<SocketOption<object>> SupportedOptions()