Provides data for the OnRead event.
For a list of all members of this type, see InternetServer.ReadEventArgs Members.
System.Object
System.EventArgs
SocketTools.InternetServer.ReadEventArgs
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
ReadEventArgs specifies the socket handle for the current client session.
The OnRead event is generated when the client sends data to the server. The Handle event argument property specifies the handle to the client socket which can be used with the Read or ReadLine methods to read the data that was sent.
When this event fires, it guarantees that data can be read from the specified client without causing the current thread to enter a blocked state. However, calling this method multiple times inside the event handler may cause the current thread to block when there is no more data available to read. The IsReadable property can be used to determine if there is additional data available to be read.
Namespace: SocketTools
Assembly: SocketTools.InternetServer (in SocketTools.InternetServer.dll)
InternetServer.ReadEventArgs Members | SocketTools Namespace | OnRead Event (SocketTools.InternetServer)