public class SocketAsyncEventArgs extends EventArgs implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Sockets.SocketAsyncEventArgs
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.SocketAsyncEventArgs
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SocketAsyncEventArgs()
Initializes a new instance by invoking the .NET constructor.
|
SocketAsyncEventArgs(boolean unsafeSuppressExecutionContextFlow)
Initializes a new instance by invoking the .NET constructor.
|
SocketAsyncEventArgs(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SocketAsyncEventArgs |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SocketAsyncEventArgs, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Dispose()
Invokes the .NET member Dispose.
|
Socket |
getAcceptSocket()
Gets the value of the .NET property AcceptSocket.
|
byte[] |
getBuffer()
Gets the value of the .NET property Buffer.
|
IList_1 |
getBufferList()
Gets the value of the .NET property BufferList.
|
int |
getBytesTransferred()
Gets the value of the .NET property BytesTransferred.
|
NetException |
getConnectByNameError()
Gets the value of the .NET property ConnectByNameError.
|
Socket |
getConnectSocket()
Gets the value of the .NET property ConnectSocket.
|
int |
getCount()
Gets the value of the .NET property Count.
|
boolean |
getDisconnectReuseSocket()
Gets the value of the .NET property DisconnectReuseSocket.
|
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. |
SocketAsyncOperation |
getLastOperation()
Gets the value of the .NET property LastOperation.
|
Memory_1 |
getMemoryBuffer()
Gets the value of the .NET property MemoryBuffer.
|
int |
getOffset()
Gets the value of the .NET property Offset.
|
IPPacketInformation |
getReceiveMessageFromPacketInfo()
Gets the value of the .NET property ReceiveMessageFromPacketInfo.
|
EndPoint |
getRemoteEndPoint()
Gets the value of the .NET property RemoteEndPoint.
|
SendPacketsElement[] |
getSendPacketsElements()
Gets the value of the .NET property SendPacketsElements.
|
TransmitFileOptions |
getSendPacketsFlags()
Gets the value of the .NET property SendPacketsFlags.
|
int |
getSendPacketsSendSize()
Gets the value of the .NET property SendPacketsSendSize.
|
SocketError |
getSocketError()
Gets the value of the .NET property SocketError.
|
SocketFlags |
getSocketFlags()
Gets the value of the .NET property SocketFlags.
|
NetObject |
getUserToken()
Gets the value of the .NET property UserToken.
|
void |
setAcceptSocket(Socket AcceptSocket)
Sets the value of the .NET property AcceptSocket.
|
void |
SetBuffer(byte[] buffer,
int offset,
int count)
Invokes the .NET member SetBuffer.
|
void |
SetBuffer(int offset,
int count)
Invokes the .NET member SetBuffer.
|
void |
SetBuffer(JCORefOut dupParam0,
int dupParam1,
int dupParam2)
Invokes the .NET member SetBuffer.
|
void |
SetBuffer(Memory_1 buffer)
Invokes the .NET member SetBuffer.
|
void |
setBufferList(IList_1 BufferList)
Sets the value of the .NET property BufferList.
|
void |
setDisconnectReuseSocket(boolean DisconnectReuseSocket)
Sets the value of the .NET property DisconnectReuseSocket.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setRemoteEndPoint(EndPoint RemoteEndPoint)
Sets the value of the .NET property RemoteEndPoint.
|
void |
setSendPacketsElements(SendPacketsElement[] SendPacketsElements)
Sets the value of the .NET property SendPacketsElements.
|
void |
setSendPacketsFlags(TransmitFileOptions SendPacketsFlags)
Sets the value of the .NET property SendPacketsFlags.
|
void |
setSendPacketsSendSize(int SendPacketsSendSize)
Sets the value of the .NET property SendPacketsSendSize.
|
void |
setSocketError(SocketError SocketError)
Sets the value of the .NET property SocketError.
|
void |
setSocketFlags(SocketFlags SocketFlags)
Sets the value of the .NET property SocketFlags.
|
void |
setUserToken(NetObject UserToken)
Sets the value of the .NET property UserToken.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SocketAsyncEventArgs()
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
FormatException,
EventSourceException
java.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic SocketAsyncEventArgs(boolean unsafeSuppressExecutionContextFlow)
throws java.lang.Throwable,
ArgumentNullException,
PlatformNotSupportedException,
OutOfMemoryException,
ArgumentOutOfRangeException,
NullReferenceException,
NotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArrayTypeMismatchException,
FormatException,
EventSourceException
unsafeSuppressExecutionContextFlow - the argument of type booleanjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic SocketAsyncEventArgs(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 SocketAsyncEventArgs cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SocketAsyncEventArgs, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSocketAsyncEventArgs 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 Dispose()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NullReferenceException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - 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 itNullReferenceException - if the .NET member raises itpublic Socket getAcceptSocket() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] getBuffer()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - 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 itpublic IList_1 getBufferList() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getBytesTransferred()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetException getConnectByNameError() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Socket getConnectSocket() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getCount()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getDisconnectReuseSocket()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class EventArgspublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class EventArgspublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class EventArgsnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class EventArgspublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class EventArgspublic SocketAsyncOperation getLastOperation() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Memory_1 getMemoryBuffer() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getOffset()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IPPacketInformation getReceiveMessageFromPacketInfo() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic EndPoint getRemoteEndPoint() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic final SendPacketsElement[] getSendPacketsElements() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic TransmitFileOptions getSendPacketsFlags() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getSendPacketsSendSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic SocketError getSocketError() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic SocketFlags getSocketFlags() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic NetObject getUserToken() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setAcceptSocket(Socket AcceptSocket) throws java.lang.Throwable
AcceptSocket - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void SetBuffer(byte[] buffer,
int offset,
int count)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NullReferenceException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException,
ArrayTypeMismatchException
buffer - the argument of type byte[]offset - the argument of type intcount - 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 itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - 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 SetBuffer(int offset,
int count)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NullReferenceException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException
offset - the argument of type intcount - 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 itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic void SetBuffer(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, ArrayTypeMismatchException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type intdupParam2 - 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 itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itObjectDisposedException - 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 SetBuffer(Memory_1 buffer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ObjectDisposedException
buffer - the argument of type Memory_1java.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 itpublic void setBufferList(IList_1 BufferList) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ObjectDisposedException, ArgumentNullException, IndexOutOfRangeException, ArrayTypeMismatchException
BufferList - the new value of the propertyjava.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 itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void setDisconnectReuseSocket(boolean DisconnectReuseSocket)
throws java.lang.Throwable
DisconnectReuseSocket - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class EventArgsinstance - the new underlying objectpublic void setRemoteEndPoint(EndPoint RemoteEndPoint) throws java.lang.Throwable
RemoteEndPoint - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setSendPacketsElements(SendPacketsElement[] SendPacketsElements) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, NullReferenceException, ObjectDisposedException
SendPacketsElements - the new value of the propertyjava.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 itpublic void setSendPacketsFlags(TransmitFileOptions SendPacketsFlags) throws java.lang.Throwable
SendPacketsFlags - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setSendPacketsSendSize(int SendPacketsSendSize)
throws java.lang.Throwable
SendPacketsSendSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setSocketError(SocketError SocketError) throws java.lang.Throwable
SocketError - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setSocketFlags(SocketFlags SocketFlags) throws java.lang.Throwable
SocketFlags - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setUserToken(NetObject UserToken) throws java.lang.Throwable
UserToken - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR