private void ProcessDataReceived()
        {
            if (theClient == null)              //&& data.StartsWith( "new " ) )
            {
                ConstructorInfo ctr = FindConstructor(handler);
                theClient = (TcpIPSocketClient)ctr.Invoke(null);
                theClient.theClientHandler = this;
            }

            byte [] ret = theClient.ProcessDataReceived(bytes, this, length);
            if (ret != null)
            {
                Send(ret);
            }
            length = 0;
        }
Exemple #2
0
        private void ProcessDataReceived()
        {
            if ( theClient == null )//&& data.StartsWith( "new " ) )
            {
                ConstructorInfo ctr = FindConstructor( handler );
                theClient = (TcpIPSocketClient)ctr.Invoke( null );
                theClient.theClientHandler = this;
            }

            byte []ret = theClient.ProcessDataReceived( bytes, this, length );
            if ( ret != null )
                Send( ret );
            length = 0;
        }