Beispiel #1
0
        protected override void Run()
        {
                        #if TRACE
            Console.WriteLine(new System.Diagnostics.StackTrace(true).GetFrame(0));
                        #endif
            ObjectBusSession.AnounceReady();
            ObjectBusSession.WaitForRemoteReady();
            try {
                DateTime t1 = DateTime.UtcNow;
                BD2.Daemon.StreamPair SP = new BD2.Daemon.StreamPair();
                SendStreamPairMessage(SP.GetOStream());
                System.IO.BinaryWriter BW = new BinaryWriter(SP.GetIStream());
                SendObject(BW, "/home/behrooz/The unix haters handbook.pdf");
                SendObject(BW, "/home/behrooz/john_1.7.8.orig.tar.gz");
                SendObject(BW, "/home/behrooz/Flag_Register_of_80386.PNG");
                SendObject(BW, "/home/behrooz/BD2.Arch.odg");

                Flush();
                Console.WriteLine("Done in {0}", (DateTime.UtcNow - t1).TotalMilliseconds);
                //Destroy ();
            } catch (System.Threading.ThreadAbortException) {
            }
        }
Beispiel #2
0
        protected override void Run()
        {
            #if TRACE
            Console.WriteLine (new System.Diagnostics.StackTrace (true).GetFrame (0));
            #endif
            ObjectBusSession.AnounceReady ();
            ObjectBusSession.WaitForRemoteReady ();
            try {

                DateTime t1 = DateTime.UtcNow;
                BD2.Daemon.StreamPair SP = new BD2.Daemon.StreamPair ();
                SendStreamPairMessage (SP.GetOStream ());
                System.IO.BinaryWriter BW = new BinaryWriter (SP.GetIStream ());
                SendObject (BW, "/home/behrooz/The unix haters handbook.pdf");
                SendObject (BW, "/home/behrooz/john_1.7.8.orig.tar.gz");
                SendObject (BW, "/home/behrooz/Flag_Register_of_80386.PNG");
                SendObject (BW, "/home/behrooz/BD2.Arch.odg");

                Flush ();
                Console.WriteLine ("Done in {0}", (DateTime.UtcNow - t1).TotalMilliseconds);
                //Destroy ();
            } catch (System.Threading.ThreadAbortException) {
            }
        }
Beispiel #3
0
 internal OStream(StreamPair streamPair)
 {
     if (streamPair == null)
         throw new ArgumentNullException ("streamPair");
     this.streamPair = streamPair;
 }