CSharpTest.Net
OnDataRecieved Event
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace > TcpServer Class : OnDataRecieved Event

Glossary Item Box

Performs the processing of the request on one of the worker threads

Syntax

Visual Basic (Declaration) 
Public Event OnDataRecieved As EventHandler(Of TcpClientEventArgs)
C# 
public event EventHandler<TcpClientEventArgs> OnDataRecieved

Event Data

The event handler receives an argument of type TcpClientEventArgs containing data related to this event. The following TcpClientEventArgs properties provide information specific to this event.

PropertyDescription
BytesAvailable Returns the number of bytes currently available.
BytesDesired Sets or Gets the number of bytes required to fulfill the request. The event will not be notified again until the required bytes have been read from the socket.
UserData Sets or Gets custom user information associated with this connection.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys