Esempio n. 1
0
        private void OnReceive( Session sender, EventArgs e )
        {
            Debug.WriteLine( String.Format( "{0} Receive {1}", DateTime.Now, IPEndPoint ) );

            if ( null == Receive )
            {
                return;
            }

            Receive( sender, e );
        }
Esempio n. 2
0
        private void OnConnect( Session sender, EventArgs e )
        {
            Debug.WriteLine( String.Format( "{0} Connect {1}", DateTime.Now, IPEndPoint ) );

            if ( null == Connect )
            {
                return;
            }

            Connect( sender, e );
        }