ProtocolSocketRegisterOpen Method |
Registers a function to call after the socket is opened, but before the OnOpenedAsync event is fired.
Namespace:
Demo3D.Net
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntaxpublic void RegisterOpen(
Func<bool, ProtocolSocket, Object?, Flags, Task> openDelegate,
Object? userState = null
)
Parameters
- openDelegate
- Type: SystemFuncBoolean, ProtocolSocket, Object, Flags, Task
The delegate to call. - userState (Optional)
- Type: SystemObject
Parameter to pass back to the callback.
Remarks
Delegates that throw an exception will prevent the socket opening.
See Also