public class SocketTaskExtensions extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Sockets.SocketTaskExtensions
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=8.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.SocketTaskExtensions
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SocketTaskExtensions() |
SocketTaskExtensions(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Task_1 |
AcceptAsync(Socket socket)
Invokes the .NET member AcceptAsync.
|
static Task_1 |
AcceptAsync(Socket socket,
Socket acceptSocket)
Invokes the .NET member AcceptAsync.
|
static SocketTaskExtensions |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SocketTaskExtensions, a cast assert is made to check if types are compatible. |
static Task |
ConnectAsync(Socket socket,
EndPoint remoteEP)
Invokes the .NET member ConnectAsync.
|
static ValueTask |
ConnectAsync(Socket socket,
EndPoint remoteEP,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
static Task |
ConnectAsync(Socket socket,
IPAddress[] addresses,
int port)
Invokes the .NET member ConnectAsync.
|
static ValueTask |
ConnectAsync(Socket socket,
IPAddress[] addresses,
int port,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
static Task |
ConnectAsync(Socket socket,
IPAddress address,
int port)
Invokes the .NET member ConnectAsync.
|
static ValueTask |
ConnectAsync(Socket socket,
IPAddress address,
int port,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
static Task |
ConnectAsync(Socket socket,
java.lang.String host,
int port)
Invokes the .NET member ConnectAsync.
|
static ValueTask |
ConnectAsync(Socket socket,
java.lang.String host,
int port,
CancellationToken cancellationToken)
Invokes the .NET member ConnectAsync.
|
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. |
static Task_1 |
ReceiveAsync(Socket socket,
ArraySegment_1 buffer,
SocketFlags socketFlags)
Invokes the .NET member ReceiveAsync.
|
static Task_1 |
ReceiveAsync(Socket socket,
IList_1 buffers,
SocketFlags socketFlags)
Invokes the .NET member ReceiveAsync.
|
static ValueTask_1 |
ReceiveAsync(Socket socket,
Memory_1 buffer,
SocketFlags socketFlags,
CancellationToken cancellationToken)
Invokes the .NET member ReceiveAsync.
|
static Task_1 |
ReceiveFromAsync(Socket socket,
ArraySegment_1 buffer,
SocketFlags socketFlags,
EndPoint remoteEndPoint)
Invokes the .NET member ReceiveFromAsync.
|
static Task_1 |
ReceiveMessageFromAsync(Socket socket,
ArraySegment_1 buffer,
SocketFlags socketFlags,
EndPoint remoteEndPoint)
Invokes the .NET member ReceiveMessageFromAsync.
|
static Task_1 |
SendAsync(Socket socket,
ArraySegment_1 buffer,
SocketFlags socketFlags)
Invokes the .NET member SendAsync.
|
static Task_1 |
SendAsync(Socket socket,
IList_1 buffers,
SocketFlags socketFlags)
Invokes the .NET member SendAsync.
|
static ValueTask_1 |
SendAsync(Socket socket,
ReadOnlyMemory_1 buffer,
SocketFlags socketFlags,
CancellationToken cancellationToken)
Invokes the .NET member SendAsync.
|
static Task_1 |
SendToAsync(Socket socket,
ArraySegment_1 buffer,
SocketFlags socketFlags,
EndPoint remoteEP)
Invokes the .NET member SendToAsync.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SocketTaskExtensions()
throws java.lang.Throwable
java.lang.Throwablepublic SocketTaskExtensions(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 static Task_1 AcceptAsync(Socket socket) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArrayTypeMismatchException, SocketException, NotSupportedException
socket - the argument of type Socketjava.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 itObjectDisposedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic static Task_1 AcceptAsync(Socket socket, Socket acceptSocket) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArrayTypeMismatchException, SocketException, NotSupportedException
socket - the argument of type SocketacceptSocket - the argument of type Socketjava.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 itObjectDisposedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic static SocketTaskExtensions cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SocketTaskExtensions, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSocketTaskExtensions instancejava.lang.Throwable - in case of error during cast operationpublic static Task ConnectAsync(Socket socket, EndPoint remoteEP) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, ArgumentException, InvalidOperationException, SocketException, NotSupportedException, FormatException, ArrayTypeMismatchException
socket - the argument of type SocketremoteEP - the argument of type EndPointjava.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 itObjectDisposedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static ValueTask ConnectAsync(Socket socket, EndPoint remoteEP, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, SocketException, FormatException, ArrayTypeMismatchException
socket - the argument of type SocketremoteEP - the argument of type EndPointcancellationToken - 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 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 static Task ConnectAsync(Socket socket, IPAddress[] addresses, int port) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, SocketException
socket - the argument of type Socketaddresses - 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 itpublic static ValueTask ConnectAsync(Socket socket, IPAddress[] addresses, int port, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, SocketException, ArgumentNullException
socket - the argument of type Socketaddresses - 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 static Task ConnectAsync(Socket socket, IPAddress address, int port) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SocketException
socket - the argument of type Socketaddress - 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 itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSocketException - if the .NET member raises itpublic static ValueTask ConnectAsync(Socket socket, IPAddress address, int port, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SocketException, FormatException, ArrayTypeMismatchException
socket - the argument of type Socketaddress - 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 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 static Task ConnectAsync(Socket socket, java.lang.String host, int port) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ObjectDisposedException, SocketException
socket - the argument of type Sockethost - 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 itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itpublic static ValueTask ConnectAsync(Socket socket, java.lang.String host, int port, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, ObjectDisposedException, SocketException, ArrayTypeMismatchException
socket - the argument of type Sockethost - 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 itObjectDisposedException - if the .NET member raises itSocketException - if the .NET member raises itArrayTypeMismatchException - 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 static Task_1 ReceiveAsync(Socket socket, ArraySegment_1 buffer, SocketFlags socketFlags) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentException, NotSupportedException
socket - the argument of type Socketbuffer - the argument of type ArraySegment_1socketFlags - the argument of type SocketFlagsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic static Task_1 ReceiveAsync(Socket socket, IList_1 buffers, SocketFlags socketFlags) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, MulticastNotSupportedException, RankException, ArrayTypeMismatchException
socket - the argument of type Socketbuffers - the argument of type IList_1socketFlags - the argument of type SocketFlagsjava.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 itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static ValueTask_1 ReceiveAsync(Socket socket, Memory_1 buffer, SocketFlags socketFlags, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, ArgumentException, InvalidOperationException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException
socket - the argument of type Socketbuffer - the argument of type Memory_1socketFlags - the argument of type SocketFlagscancellationToken - the argument of type CancellationTokenjava.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 itObjectDisposedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic static Task_1 ReceiveFromAsync(Socket socket, ArraySegment_1 buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException
socket - the argument of type Socketbuffer - the argument of type ArraySegment_1socketFlags - the argument of type SocketFlagsremoteEndPoint - the argument of type EndPointjava.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 itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static Task_1 ReceiveMessageFromAsync(Socket socket, ArraySegment_1 buffer, SocketFlags socketFlags, EndPoint remoteEndPoint) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, SocketException
socket - the argument of type Socketbuffer - the argument of type ArraySegment_1socketFlags - the argument of type SocketFlagsremoteEndPoint - the argument of type EndPointjava.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 itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itSocketException - if the .NET member raises itpublic static Task_1 SendAsync(Socket socket, ArraySegment_1 buffer, SocketFlags socketFlags) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArrayTypeMismatchException, IndexOutOfRangeException
socket - the argument of type Socketbuffer - the argument of type ArraySegment_1socketFlags - the argument of type SocketFlagsjava.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 itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static Task_1 SendAsync(Socket socket, IList_1 buffers, SocketFlags socketFlags) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, MulticastNotSupportedException, RankException, ArrayTypeMismatchException
socket - the argument of type Socketbuffers - the argument of type IList_1socketFlags - the argument of type SocketFlagsjava.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 itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic static ValueTask_1 SendAsync(Socket socket, ReadOnlyMemory_1 buffer, SocketFlags socketFlags, CancellationToken cancellationToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, ArrayTypeMismatchException, FormatException
socket - the argument of type Socketbuffer - the argument of type ReadOnlyMemory_1socketFlags - the argument of type SocketFlagscancellationToken - 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 itInvalidOperationException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itpublic static Task_1 SendToAsync(Socket socket, ArraySegment_1 buffer, SocketFlags socketFlags, EndPoint remoteEP) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, ArrayTypeMismatchException, SocketException
socket - the argument of type Socketbuffer - the argument of type ArraySegment_1socketFlags - the argument of type SocketFlagsremoteEP - the argument of type EndPointjava.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 itObjectDisposedException - if the .NET member raises itInvalidOperationException - 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 object