|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| SafeSocketHandle () | |
| SafeSocketHandle (IntPtr preexistingHandle, bool ownsHandle) | |
| IntPtr | DangerousGetHandle () |
| void | Close () |
| void | Dispose () |
| void | SetHandleAsInvalid () |
| void | DangerousAddRef (ref bool success) |
| void | DangerousRelease () |
Protected Member Functions | |
| override bool | ReleaseHandle () |
| virtual void | Dispose (bool disposing) |
Protected Attributes | |
| IntPtr | handle |
Package Functions | |
| void | TrackShutdown (SocketShutdown how) |
| void | CloseAsIs (bool abortive) |
| void | SetExposed () |
| ThreadPoolBoundHandle | GetThreadPoolBoundHandle () |
| ThreadPoolBoundHandle | GetOrAllocateThreadPoolBoundHandle (bool trySkipCompletionPortOnSuccess) |
| void | SetHandle (IntPtr handle) |
Properties | |
| bool | OwnsHandle [get] |
| override bool | IsInvalid [get] |
| ThreadPoolBoundHandle? | IOCPBoundHandle [get] |
| bool | SkipCompletionPortOnSuccess [get] |
| bool | IsClosed [get] |
Private Member Functions | |
| bool | TryOwnClose () |
| bool | CloseHandle (bool abortive, bool canceledOperations) |
| void | SetHandleAndValid (IntPtr handle) |
| bool | OnHandleClose () |
| unsafe bool | TryUnblockSocket (bool abortive) |
| SocketError | DoCloseHandle (bool abortive) |
| void | InternalRelease (bool disposeOrFinalizeOperation) |
Static Private Member Functions | |
| static void | ThrowSocketDisposedException (Exception innerException=null) |
Private Attributes | |
| int | _ownClose |
| volatile bool | _released |
| bool | _hasShutdownSend |
| ThreadPoolBoundHandle | _iocpBoundHandle |
| bool | _skipCompletionPortOnSuccess |
| volatile int | _state |
| readonly bool | _ownsHandle |
| volatile bool | _fullyInitialized |
Definition at line 8 of file SafeSocketHandle.cs.