Click or drag to resize

ProtocolSocketRegisterOpen Method

Registers a function to call after the socket is opened, but before the OnOpened event is fired.

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 11.0.0.7658
Syntax
C#
public void RegisterOpen(
	Func<ProtocolSocket, Object, Task> openDelegate,
	Object userState = null
)

Parameters

openDelegate
Type: SystemFuncProtocolSocket, Object, Task
The delegate to call.
userState (Optional)
Type: SystemObject
Parameter to pass back to the callback.
Remarks
Throwing an exception will prevent the socket opening.
See Also