Exemple #1
0
        public void SendClientMessage( string msg )
        {
            byte[] bytes = System.Text.ASCIIEncoding.ASCII.GetBytes( msg );

            _input = new StringStream( "", "IP" );
            _parser = new IrcMsgParser( _input );

            _parser.MessageRecievedEvent += new MessageRecievedHandler( _parser_MessageRecievedEvent );
            _clientSocket.Client.Send( bytes );
        }
Exemple #2
0
        public void ParseMessage(NetworkStream s)
        {
            IStream gFileIn = new TcpStream(s, "TcpStream");

            IrcMsgParser msg = new IrcMsgParser(gFileIn);

            msg.StdOut = Output;

            msg.MessageRecievedEvent += new MessageRecievedHandler( (o, m) => FireMessageRecieved( m ) ) ;
            msg.ConnectionClosedEvent += new ConnectionClosedHandler( o => FileConnectionClosed() );

            if (msg.Parse())
            {
            }
        }