public class TcpClient extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Sockets.TcpClient
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Net.Sockets, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Sockets
|
static java.lang.String |
className
Qualified class name: System.Net.Sockets.TcpClient
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TcpClient()
Initializes a new instance by invoking the .NET constructor.
|
TcpClient(AddressFamily family)
Initializes a new instance by invoking the .NET constructor.
|
TcpClient(IPEndPoint localEP)
Initializes a new instance by invoking the .NET constructor.
|
TcpClient(java.lang.Object instance)
Internal constructor.
|
TcpClient(java.lang.String hostname,
int port)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAsyncResult |
BeginConnect(IPAddress[] addresses,
int port,
AsyncCallback requestCallback,
NetObject state)
Invokes the .NET member BeginConnect.
|
IAsyncResult |
BeginConnect(IPAddress address,
int port,
AsyncCallback requestCallback,
NetObject state)
Invokes the .NET member BeginConnect.
|
IAsyncResult |
BeginConnect(java.lang.String host,
int port,
AsyncCallback requestCallback,
NetObject state)
Invokes the .NET member BeginConnect.
|
static TcpClient |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TcpClient, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close()
Invokes the .NET member Close.
|
void |
Connect(IPAddress[] ipAddresses,
int port)
Invokes the .NET member Connect.
|
void |
Connect(IPAddress address,
int port)
Invokes the .NET member Connect.
|
void |
Connect(IPEndPoint remoteEP)
Invokes the .NET member Connect.
|
void |
Connect(java.lang.String hostname,
int port)
Invokes the .NET member Connect.
|
Task |
ConnectAsync(IPAddress[] addresses,
int port)
Invokes the .NET member ConnectAsync.
|
ValueTask |
ConnectAsync(IPAddress[] addresses,
int port,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
Task |
ConnectAsync(IPAddress address,
int port)
Invokes the .NET member ConnectAsync.
|
ValueTask |
ConnectAsync(IPAddress address,
int port,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
Task |
ConnectAsync(IPEndPoint remoteEP)
Invokes the .NET member ConnectAsync.
|
ValueTask |
ConnectAsync(IPEndPoint remoteEP,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
Task |
ConnectAsync(java.lang.String host,
int port)
Invokes the .NET member ConnectAsync.
|
ValueTask |
ConnectAsync(java.lang.String host,
int port,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
void |
EndConnect(IAsyncResult asyncResult)
Invokes the .NET member EndConnect.
|
int |
getAvailable()
Gets the value of the .NET property Available.
|
Socket |
getClient()
Gets the value of the .NET property Client.
|
boolean |
getConnected()
Gets the value of the .NET property Connected.
|
boolean |
getExclusiveAddressUse()
Gets the value of the .NET property ExclusiveAddressUse.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
LingerOption |
getLingerState()
Gets the value of the .NET property LingerState.
|
boolean |
getNoDelay()
Gets the value of the .NET property NoDelay.
|
int |
getReceiveBufferSize()
Gets the value of the .NET property ReceiveBufferSize.
|
int |
getReceiveTimeout()
Gets the value of the .NET property ReceiveTimeout.
|
int |
getSendBufferSize()
Gets the value of the .NET property SendBufferSize.
|
int |
getSendTimeout()
Gets the value of the .NET property SendTimeout.
|
NetworkStream |
GetStream()
Invokes the .NET member GetStream.
|
void |
setClient(Socket Client)
Sets the value of the .NET property Client.
|
void |
setExclusiveAddressUse(boolean ExclusiveAddressUse)
Sets the value of the .NET property ExclusiveAddressUse.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setLingerState(LingerOption LingerState)
Sets the value of the .NET property LingerState.
|
void |
setNoDelay(boolean NoDelay)
Sets the value of the .NET property NoDelay.
|
void |
setReceiveBufferSize(int ReceiveBufferSize)
Sets the value of the .NET property ReceiveBufferSize.
|
void |
setReceiveTimeout(int ReceiveTimeout)
Sets the value of the .NET property ReceiveTimeout.
|
void |
setSendBufferSize(int SendBufferSize)
Sets the value of the .NET property SendBufferSize.
|
void |
setSendTimeout(int SendTimeout)
Sets the value of the .NET property SendTimeout.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TcpClient()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
InvalidOperationException,
FormatException,
EventSourceException,
CultureNotFoundException,
SocketException,
ArgumentNullException
java.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSocketException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic TcpClient(AddressFamily family) throws java.lang.Throwable, PlatformNotSupportedException, NotSupportedException, ArgumentException, OutOfMemoryException, ArrayTypeMismatchException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, IndexOutOfRangeException, FormatException, EventSourceException, ObjectDisposedException, SocketException
family - the argument of type AddressFamilyjava.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itpublic TcpClient(IPEndPoint localEP) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, FormatException, EventSourceException, SocketException
localEP - the argument of type IPEndPointjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itpublic TcpClient(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic TcpClient(java.lang.String hostname,
int port)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
InvalidOperationException,
FormatException,
EventSourceException,
CultureNotFoundException,
SocketException,
ArgumentNullException
hostname - the argument of type java.lang.Stringport - the argument of type intjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSocketException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback requestCallback, NetObject state) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, SocketException, NotSupportedException
addresses - the argument of type IPAddress[]port - the argument of type intrequestCallback - the argument of type AsyncCallbackstate - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSocketException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic IAsyncResult BeginConnect(IPAddress address, int port, AsyncCallback requestCallback, NetObject state) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ObjectDisposedException, ArgumentException, InvalidOperationException, SocketException, OutOfMemoryException, EventSourceException
address - the argument of type IPAddressport - the argument of type intrequestCallback - the argument of type AsyncCallbackstate - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic IAsyncResult BeginConnect(java.lang.String host, int port, AsyncCallback requestCallback, NetObject state) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NullReferenceException, ObjectDisposedException, SocketException, OutOfMemoryException, EventSourceException
host - the argument of type java.lang.Stringport - the argument of type intrequestCallback - the argument of type AsyncCallbackstate - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic static TcpClient cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TcpClient, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTcpClient instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ObjectDisposedException,
OutOfMemoryException,
FormatException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic void Connect(IPAddress[] ipAddresses, int port) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, SocketException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException
ipAddresses - the argument of type IPAddress[]port - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSocketException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Connect(IPAddress address, int port) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, SocketException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, ArrayTypeMismatchException
address - the argument of type IPAddressport - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Connect(IPEndPoint remoteEP) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, SocketException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, ArrayTypeMismatchException
remoteEP - the argument of type IPEndPointjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Connect(java.lang.String hostname,
int port)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
FormatException,
SocketException,
ArgumentNullException,
ArrayTypeMismatchException
hostname - the argument of type java.lang.Stringport - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itSocketException - if the .NET member raises itArgumentNullException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task ConnectAsync(IPAddress[] addresses, int port) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, SocketException, NotSupportedException, NullReferenceException
addresses - the argument of type IPAddress[]port - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itpublic ValueTask ConnectAsync(IPAddress[] addresses, int port, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, SocketException, ArgumentNullException
addresses - the argument of type IPAddress[]port - the argument of type intcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itSocketException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Task ConnectAsync(IPAddress address, int port) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ObjectDisposedException, InvalidOperationException, SocketException
address - the argument of type IPAddressport - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itpublic ValueTask ConnectAsync(IPAddress address, int port, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ObjectDisposedException, InvalidOperationException, SocketException, FormatException, ArrayTypeMismatchException
address - the argument of type IPAddressport - the argument of type intcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task ConnectAsync(IPEndPoint remoteEP) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ObjectDisposedException, ArgumentException, InvalidOperationException, SocketException, FormatException, ArrayTypeMismatchException
remoteEP - the argument of type IPEndPointjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic ValueTask ConnectAsync(IPEndPoint remoteEP, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, NullReferenceException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, SocketException, FormatException, ArrayTypeMismatchException
remoteEP - the argument of type IPEndPointcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task ConnectAsync(java.lang.String host, int port) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, NullReferenceException, ObjectDisposedException, SocketException
host - the argument of type java.lang.Stringport - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itpublic ValueTask ConnectAsync(java.lang.String host, int port, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, NullReferenceException, ObjectDisposedException, SocketException, ArrayTypeMismatchException
host - the argument of type java.lang.Stringport - the argument of type intcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NullReferenceException,
ObjectDisposedException,
IndexOutOfRangeException,
OutOfMemoryException,
FormatException,
ArgumentNullException,
EventSourceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic void EndConnect(IAsyncResult asyncResult) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, TaskSchedulerException, PlatformNotSupportedException, TaskCanceledException, ArgumentOutOfRangeException, AggregateException
asyncResult - the argument of type IAsyncResultjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itTaskCanceledException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itAggregateException - if the .NET member raises itpublic int getAvailable()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
EventSourceException,
SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itpublic Socket getClient() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getConnected()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
EventSourceException,
ObjectDisposedException,
SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itpublic boolean getExclusiveAddressUse()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
OutOfMemoryException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
FormatException,
InvalidOperationException,
EventSourceException,
SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic LingerOption getLingerState() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, OutOfMemoryException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException, EventSourceException, SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itpublic boolean getNoDelay()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
OutOfMemoryException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentException,
FormatException,
InvalidOperationException,
EventSourceException,
SocketException
java.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itpublic int getReceiveBufferSize()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
ArgumentOutOfRangeException,
ArgumentNullException,
EventSourceException,
SocketException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic int getReceiveTimeout()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
ArgumentOutOfRangeException,
ArgumentNullException,
EventSourceException,
SocketException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic int getSendBufferSize()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
ArgumentOutOfRangeException,
ArgumentNullException,
EventSourceException,
SocketException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic int getSendTimeout()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
FormatException,
ArgumentOutOfRangeException,
ArgumentNullException,
EventSourceException,
SocketException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic NetworkStream GetStream() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, ArgumentNullException, EventSourceException, SocketException, IOException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itpublic void setClient(Socket Client) throws java.lang.Throwable, OutOfMemoryException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, InvalidOperationException, FormatException, EventSourceException, SocketException, ObjectDisposedException, NotSupportedException
Client - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLROutOfMemoryException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void setExclusiveAddressUse(boolean ExclusiveAddressUse)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
IndexOutOfRangeException,
OutOfMemoryException,
FormatException,
EventSourceException,
ArrayTypeMismatchException,
SocketException
ExclusiveAddressUse - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setLingerState(LingerOption LingerState) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, ArgumentException, InvalidOperationException, FormatException, ArgumentOutOfRangeException, EventSourceException, NotSupportedException, CultureNotFoundException, SocketException, ArrayTypeMismatchException
LingerState - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itEventSourceException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setNoDelay(boolean NoDelay)
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentException,
InvalidOperationException,
FormatException,
ArgumentOutOfRangeException,
EventSourceException,
NotSupportedException,
ArrayTypeMismatchException,
SocketException
NoDelay - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itEventSourceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itpublic void setReceiveBufferSize(int ReceiveBufferSize)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
EventSourceException,
ArrayTypeMismatchException,
SocketException
ReceiveBufferSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itpublic void setReceiveTimeout(int ReceiveTimeout)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
EventSourceException,
ArrayTypeMismatchException,
SocketException
ReceiveTimeout - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itpublic void setSendBufferSize(int SendBufferSize)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
EventSourceException,
ArrayTypeMismatchException,
SocketException
SendBufferSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itpublic void setSendTimeout(int SendTimeout)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ObjectDisposedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
ArgumentNullException,
EventSourceException,
ArrayTypeMismatchException,
SocketException
SendTimeout - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itObjectDisposedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itEventSourceException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises it