public void Start( )
{
if ( thread == null )
{
if ( ( communicator == null ) || ( communicator.EndPoint == null ) )
{
throw new NotConnectedException( "Not connected to SRV-1." );
}
framesReceived = 0;
bytesReceived = 0;
// create events
stopEvent = new ManualResetEvent( false );
// create and start new thread
thread = new Thread( new ThreadStart( WorkerThread ) );
thread.Name = Source; // mainly for debugging
thread.Start( );
}
}