Subversion Repository Public Repository

ChrisCompleteCodeTrunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
//
// name: 	Printer Class 
// author: 	rob tillaart
// version:	1.06	
//
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Collections;
using System.Collections.Specialized;

namespace LPD
{
    class Printer
    {
        #region variables

        private string phost;
        private string pqueue;
        private string puser;

        private string errormsg = "";
        private string logfile = "";

        private long filesSend;

        private const int pport = 515;			// hard coded LPR/LPD port number

        private string controlfile;				// not really a file but ok
        // Example: "HPC1\nProb\nfdfA040PC1\nUdfA040PC1\nNtimerH.ps\n"
        // H PC1   			=> responsible host (mandatory)
        // P rob 			=> responsible user (mandatory)
        // f dfA040PC1 		=> Print formatted file
        // U dfA040PC1      => Unlink data file (indicates that sourcefile is no longer needed!)
        // N timerH.ps      => Name of source file

        private Queue PrintQueue = new Queue();	// to keep the files to send

        #endregion variables

        #region constructor

        /// <summary>
        /// Constructor for an instance of an printer that can communicate 
        /// with LPR, LPQ and LPRM.
        /// </summary>
        /// <param name="printerName">idem</param>
        /// <param name="queueName">idem</param>
        /// <param name="userName">idem</param>
        public Printer(string printerName, string queueName, string userName)
        {
            phost = printerName;
            pqueue = queueName;
            puser = userName;
            string msg = string.Format("PRINTER: {0} {1} {2}", phost, pqueue, puser);
            WriteLog(msg);
        }

        #endregion constructor

        #region properties

        public string PHost
        {
            get
            {
                return phost;
            }
        }

        public string PQueue
        {
            get
            {
                return pqueue;
            }
            set
            {
                pqueue = value;
            }
        }

        public string PUser
        {
            get
            {
                return puser;
            }
        }

        public string LogFile
        {
            get
            {
                return logfile;
            }
            set
            {
                logfile = value;
                WriteLog("logfile -> " + logfile);
            }
        }

        public string ErrorMsg
        {
            get
            {
                return errormsg;
            }
        }

        public string Status
        {
            get
            {
                int cnt = InternalQueueSize;
                if (cnt > 0)
                {
                    return "Busy.";
                }
                return "Idle.";
            }
        }

        public int InternalQueueSize
        {
            get
            {
                if (PrintQueue != null)
                {
                    return PrintQueue.Count;
                }
                return 0;	// incorrect but ok
            }
        }

        public long FilesSend
        {
            get
            {
                return filesSend;
            }
        }


        #endregion properties

        #region Restart

        public void Restart()
        {
            WriteLog("Restart");
            ProcessRestart();
        }

        /// <summary>
        /// This command starts the printing process if it not already running.
        /// </summary>
        private void ProcessRestart()
        {
            errormsg = "";

            ////////////////////////////////////////////////////////
            /// PREPARE TCPCLIENT STUF
            ///
            TcpClient tc = new TcpClient();
            tc.Connect(phost, pport);
            NetworkStream nws = tc.GetStream();
            if (!nws.CanWrite)
            {
                errormsg = "-1: cannot write to network stream";
                nws.Close();
                tc.Close();
                return;
            }

            ////////////////////////////////////////////////////////
            /// LOCAL VARIABLES
            ///
            const int BUFSIZE = 1024;				// 1KB buffer 
            byte[] buffer = new byte[BUFSIZE];
            byte[] ack = new byte[4];				// for acknowledge
            int cnt;								// for read acknowledge

            ////////////////////////////////////////////////////////
            /// COMMAND: RESTART
            ///      +----+-------+----+
            ///      | 01 | Queue | LF |
            ///      +----+-------+----+
            ///      Command code - 1
            ///      Operand - Printer queue name
            /// 

            int pos = 0;
            buffer[pos++] = 1;
            for (int i = 0; i < pqueue.Length; i++)
            {
                buffer[pos++] = (byte)pqueue[i];
            }
            buffer[pos++] = (byte)'\n';

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ ACK
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-2: no ACK on RESTART";
                nws.Close();
                tc.Close();
                return;
            }
            nws.Close();
            tc.Close();
        }

        #endregion Restart

        #region LPR

        /// <summary>
        /// LPR starts a new thread to send a file to the LPD daemon. The 
        /// advantage of a separate thread per spool file is that the average 
        /// waiting time for jobs is minimized as small files do not have to 
        /// wait for large files.
        /// </summary>
        /// <param name="fileName">path to the file to be printed</param>
        /// <param name="deleteFileAfterPrint">Flag to indicate to delete the file after it is printed</param>
        public void LPR(string fileName, bool deleteFileAfterPrint)
        {
            string msg = "LPR: " + fileName;
            WriteLog(msg);
            if (!File.Exists(fileName))
            {
                errormsg = "-10: " + fileName + " does not exist.";
                return;
            }

            // BUG: 
            // filesSend is never reset but as it is a long
            // it will not overflow very soon
            filesSend++;
            PrintQueue.Enqueue(fileName);

            // start every print as a separate thread;
            // 
            // implementation of deleteAfterPrintFlag
            // thanx to Dion Slijp
            ParameterizedThreadStart myThreadDelegate = new ParameterizedThreadStart(ProcessLPR);
            Thread myThread = new Thread(myThreadDelegate);
            myThread.Start(deleteFileAfterPrint);

            return;
        }

        /// <summary>
        /// LPR call to print multiple files collected in a string collection.
        /// </summary>
        /// <param name="fileNames"></param>
        public void LPR(StringCollection fileNames, bool deleteFileAfterPrint)
        {
            if (fileNames != null)
            {
                foreach (string fn in fileNames)
                {
                    LPR(fn, deleteFileAfterPrint);
                }
            }
        }

        /// <summary>
        /// internal LPR work manager 
        /// </summary>
        private void ProcessLPR(object deleteFileAfterPrint)
        {
            string fname = "";
            try
            {
                fname = (string)PrintQueue.Dequeue();
                SendFile(fname, (bool)deleteFileAfterPrint);
            }
            catch (Exception ex)
            {
                errormsg = "-11: " + ex.Message + " " + fname;
            }
        }

        /// <summary>
        /// Internal worker to send the file over LPR. If the sending succeeds 
        /// and the del flag is TRUE the file <para>fname</para> will be deleted.
        /// If any error occurs the file will not be deleted.  
        /// </summary>
        /// <param name="fname">filename to send</param>
        /// <param name="del">flag delete after print</param>
        private void SendFile(string fname, bool del)
        {
            errormsg = "";

            ////////////////////////////////////////////////////////
            /// PREPARE TCPCLIENT
            ///
            TcpClient tc = new TcpClient();
            tc.Connect(phost, pport);
            NetworkStream nws = tc.GetStream();
            if (!nws.CanWrite)
            {
                errormsg = "-20: cannot write to network stream";
                nws.Close();
                tc.Close();
                return;
            }

            ////////////////////////////////////////////////////////
            /// SOME LOCAL VARIABLES
            ///
            string localhost = Dns.GetHostName();
            int jobID = GetJobId();
            string dname = String.Format("dfA{0}{1}", jobID, localhost);
            string cname = String.Format("cfA{0}{1}", jobID, localhost);
            controlfile = String.Format("H{0}\nP{1}\nf{2}\nU{3}\nN{4}\n",
                                        localhost, puser, dname, dname, Path.GetFileName(fname));

            const int BUFSIZE = 4 * 1024;			// 4KB buffer
            byte[] buffer = new byte[BUFSIZE];		// 
            byte[] ack = new byte[4];				// for the acknowledges
            int cnt;								// for read acknowledge

            ////////////////////////////////////////////////////////
            /// COMMAND: RECEIVE A PRINTJOB
            ///      +----+-------+----+
            ///      | 02 | Queue | LF |
            ///      +----+-------+----+
            ///
            int pos = 0;
            buffer[pos++] = 2;
            for (int i = 0; i < pqueue.Length; i++)
            {
                buffer[pos++] = (byte)pqueue[i];
            }
            buffer[pos++] = (byte)'\n';

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ ACK
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-21: no ACK on COMMAND 02.";
                nws.Close();
                tc.Close();
                return;
            }

            /////////////////////////////////////////////////////////
            /// SUBCMD: RECEIVE CONTROL FILE
            ///
            ///      +----+-------+----+------+----+
            ///      | 02 | Count | SP | Name | LF |
            ///      +----+-------+----+------+----+
            ///      Command code - 2
            ///      Operand 1 - Number of bytes in control file
            ///      Operand 2 - Name of control file
            ///
            pos = 0;
            buffer[pos++] = 2;
            string len = controlfile.Length.ToString();
            for (int i = 0; i < len.Length; i++)
            {
                buffer[pos++] = (byte)len[i];
            }
            buffer[pos++] = (byte)' ';
            for (int i = 0; i < cname.Length; i++)
            {
                buffer[pos++] = (byte)cname[i];
            }
            buffer[pos++] = (byte)'\n';

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ ACK
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-22: no ACK on SUBCMD 2";
                nws.Close();
                tc.Close();
                return;
            }

            /////////////////////////////////////////////////////////
            /// ADD CONTENT OF CONTROLFILE
            pos = 0;
            for (int i = 0; i < controlfile.Length; i++)
            {
                buffer[pos++] = (byte)controlfile[i];
            }
            buffer[pos++] = 0;

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ ACK
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-23: no ACK on CONTROLFILE";
                nws.Close();
                tc.Close();
                return;
            }

            /////////////////////////////////////////////////////////
            /// SUBCMD: RECEIVE DATA FILE
            ///
            ///      +----+-------+----+------+----+
            ///      | 03 | Count | SP | Name | LF |
            ///      +----+-------+----+------+----+
            ///      Command code - 3
            ///      Operand 1 - Number of bytes in data file
            ///      Operand 2 - Name of data file
            ///
            pos = 0;
            buffer[pos++] = 3;

            FileInfo DataFileInfo = new FileInfo(fname);
            len = DataFileInfo.Length.ToString();

            for (int i = 0; i < len.Length; i++)
            {
                buffer[pos++] = (byte)len[i];
            }
            buffer[pos++] = (byte)' ';
            for (int i = 0; i < dname.Length; i++)
            {
                buffer[pos++] = (byte)dname[i];
            }
            buffer[pos++] = (byte)'\n';

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ ACK
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-24: no ACK on SUBCMD 3";
                nws.Close();
                tc.Close();
                return;
            }

            /////////////////////////////////////////////////////////
            /// ADD CONTENT OF DATAFILE

            // use BinaryReader as print files may contain non ASCII characters.
            //			FileStream fs = new FileStream(fname, FileMode.Open, FileAccess.Read);
            //        	BinaryReader br = new BinaryReader(fs);
            //        	long totalbytes = 0;
            //            while (br.PeekChar() > -1)
            //            {
            //				int n = br.Read(buffer, 0, BUFSIZE);
            //				totalbytes += n;
            //	            nws.Write(buffer, 0, n);
            //            	nws.Flush();
            //            }
            //			br.Close();
            //			fs.Close();

            // Code Patched
            // thanx to Karl Fleishmann
            long totalbytes = 0;
            int bytesRead = 0;
            FileStream fstream = new FileStream(fname, FileMode.Open);
            while ((bytesRead = fstream.Read(buffer, 0, BUFSIZE)) > 0)
            {
                totalbytes += bytesRead;
                nws.Write(buffer, 0, bytesRead);
                nws.Flush();
            }
            fstream.Close();


            if (DataFileInfo.Length != totalbytes)
            {
                string msg = fname + ": file length error";
                WriteLog(msg);
                // just proceed for now
            }

            // close data file with a 0 ..
            pos = 0;
            buffer[pos++] = 0;
            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ ACK
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-25: no ACK on DATAFILE";
                nws.Close();
                tc.Close();
                return;
            }

            nws.Close();
            tc.Close();

            // all printed well
            // should we delete the file?
            if (del) File.Delete(fname);
        }

        #endregion LPR

        #region LPQ

        /// <summary>
        /// LPQ requests the device for the queue content in a short format. 
        /// </summary>
        /// <returns>LPQ returns a printer specific string representing the queue</returns>
        public string LPQ()
        {
            return LPQ(false);
        }

        /// <summary>
        /// LPQ requests the device for the queue content. 
        /// If the parameter longlist is false it is requested in a short 
        /// format otherwise in a log format. Note that these formats are 
        /// not defined by the rfc1179 and are therefor printer or printserver 
        /// specific.
        /// </summary>
        /// <param name="longlist">boolean indicating a long (true) or a short (false) listing</param>
        /// <returns>LPQ returns a printer specific string representing the queue</returns>
        public string LPQ(bool longlist)
        {
            string msg = "LPQ: " + longlist.ToString();
            WriteLog(msg);

            string rv = "";
            try
            {
                rv = ProcessLPQ(longlist);
            }
            catch
            {
                errormsg = "-30:  Could not request queue";
                rv = errormsg;
            }
            return rv;
        }

        /// <summary>
        /// LPQ internal worker 
        /// </summary>
        /// <param name="longlist">long (true) or a short (false) listing</param>
        /// <returns>string representing the queue contents.</returns>
        private string ProcessLPQ(bool longlist)
        {
            errormsg = "";

            ////////////////////////////////////////////////////////
            /// PREPARE TCPCLIENT STUF
            ///
            TcpClient tc = new TcpClient();
            tc.Connect(phost, pport);
            NetworkStream nws = tc.GetStream();
            if (!nws.CanWrite)
            {
                errormsg = "-40: cannot write to network stream";
                nws.Close();
                tc.Close();
                return "";
            }

            ////////////////////////////////////////////////////////
            /// SOME LOCAL VARS
            ///
            const int BUFSIZE = 1024;				// 1KB buffer 
            byte[] buffer = new byte[BUFSIZE];		// fat buffer
            int cnt;								// for read acknowledge

            ////////////////////////////////////////////////////////
            /// COMMAND: SEND QUEUE STATE
            ///     +----+-------+----+------+----+
            ///	    | 03 | Queue | SP | List | LF |
            ///		+----+-------+----+------+----+
            /// 	Command code - 3 for short que listing 4 for long que listing
            ///		Operand 1 - Printer queue name
            ///		Other operands - User names or job numbers
            ///
            int pos = 0;
            buffer[pos++] = (byte)(longlist ? 3 : 4);
            for (int i = 0; i < pqueue.Length; i++)
            {
                buffer[pos++] = (byte)pqueue[i];
            }
            buffer[pos++] = (byte)' ';
            // ask all users

            // for (int i = 0; i < user.Length; i++)
            // {
            // 		buffer[pos++] = (byte)user[i];
            // }
            buffer[pos++] = (byte)'\n';

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ LPQ OUTPUT
            /// 
            string rv = "";
            cnt = nws.Read(buffer, 0, BUFSIZE);
            while (cnt > 0)
            {
                rv += System.Text.Encoding.ASCII.GetString(buffer);
                cnt = nws.Read(buffer, 0, BUFSIZE);
            }

            nws.Close();
            tc.Close();

            return rv.Replace("\n", "\r\n");
        }

        #endregion LPQ

        #region LPRM

        /// <summary>
        /// LPRM removes the job with jobID from the queue. If the jobID is 
        /// ommitted, the active job will be removed. Note that only jobs from 
        /// the current user can be removed. Check with LPQ if jobs are really 
        /// removed.
        /// </summary>
        /// <param name="jobID">
        /// String representing the jobID to be removed from the queue.
        /// jobID might contain multiple jobID's that are separated by spaces
        /// (at least for the winXP LPD daemon)
        /// </param>
        public void LPRM(string jobID)
        {
            string msg = "LPRM: " + jobID;
            WriteLog(msg);

            try
            {
                ProcessLPRM(jobID);
            }
            catch
            {
                errormsg = "-50: Could not remove job";
            }
            return;
        }

        /// <summary>
        /// LPRM internal worker
        /// </summary>
        /// <returns></returns>
        private void ProcessLPRM(string jobID)
        {
            errormsg = "";

            ////////////////////////////////////////////////////////
            /// PREPARE TCPCLIENT STUF
            ///
            TcpClient tc = new TcpClient();
            tc.Connect(phost, pport);
            NetworkStream nws = tc.GetStream();
            if (!nws.CanWrite)
            {
                errormsg = "-51: cannot write to network stream";
                nws.Close();
                tc.Close();
                return;
            }

            ////////////////////////////////////////////////////////
            /// LOCAL VARIABLES
            ///
            const int BUFSIZE = 1024;				// 1KB buffer
            byte[] buffer = new byte[BUFSIZE];		// buffer
            int cnt;								// for read acknowledge
            byte[] ack = new byte[4];				// for the acknowledges

            ////////////////////////////////////////////////////////
            /// COMMAND: REMOVE JOBS 
            ///      +----+-------+----+-------+----+------+----+
            ///      | 05 | Queue | SP | Agent | SP | List | LF |
            ///      +----+-------+----+-------+----+------+----+
            ///      Command code - 5
            ///      Operand 1 - Printer queue name
            ///      Operand 2 - User name making request (the agent)
            ///      Other operands - User names or job numbers
            ///

            int pos = 0;
            buffer[pos++] = 5;
            for (int i = 0; i < pqueue.Length; i++)
            {
                buffer[pos++] = (byte)pqueue[i];
            }
            buffer[pos++] = (byte)' ';

            // for current user
            for (int i = 0; i < puser.Length; i++)
            {
                buffer[pos++] = (byte)puser[i];
            }

            // identified job, might be an empty string
            buffer[pos++] = (byte)' ';
            for (int i = 0; i < jobID.Length; i++)
            {
                buffer[pos++] = (byte)jobID[i];
            }
            buffer[pos++] = (byte)'\n';

            nws.Write(buffer, 0, pos);
            nws.Flush();

            /////////////////////////////////////////////////////////
            /// READ LPRM OUTPUT
            cnt = nws.Read(ack, 0, 4);
            if (ack[0] != 0)
            {
                errormsg = "-52: no ACK on COMMAND 05";
                nws.Close();
                tc.Close();
                return;
            }

            nws.Close();
            tc.Close();

            return;
        }

        #endregion LPRM

        #region misc
        /// <summary>
        /// GetCounter returns the next jobid for the LPR protocol
        /// which must be between 0 and 999.
        /// The jobid is incremented every call but will be wrapped to 0 when 
        /// larger than 999. 
        /// </summary>
        /// <returns>next number</returns>
        private int GetJobId()
        {
            // TODO: GetJobID: keep counter in the registry, or use random generator.
            string temp = Environment.GetEnvironmentVariable("TEMP");
            string cntpath = temp + "LprJobId.txt";

            int cnt = 0;
            try
            {
                StreamReader sr = new StreamReader(cntpath);
                cnt = Int32.Parse(sr.ReadLine());
                sr.Close();
            }
            catch	// file doesn't exist
            {
                cnt = 0;
            }
            cnt++;			// next number but 
            cnt %= 1000;	// keep cnt between 0 and 999
            try
            {
                StreamWriter sw = new StreamWriter(cntpath);
                sw.WriteLine("{0}\n", cnt);
                sw.Close();
            }
            catch
            {
            }
            return cnt;
        }

        /// <summary>
        /// WriteLog writes a message with a date to the logfile.
        /// </summary>
        /// <param name="message">string to write in the logfile.</param>
        private void WriteLog(string message)
        {
            if ((logfile != null) && (logfile != ""))
            {
                string msg = DateTime.Now.ToString() + "; " + message;
                StreamWriter sw = new StreamWriter(logfile, true);
                sw.WriteLine(msg);
                sw.Close();
            }
        }
        #endregion misc
    }
}

Commits for ChrisCompleteCodeTrunk/ATTP/Action Tire Payment Processor/LPD.cs

Diff revisions: vs.
Revision Author Commited Message
1 BBDSCHRIS picture BBDSCHRIS Wed 22 Aug, 2018 20:08:03 +0000