Esempio n. 1
0
		public Transport (int BUFSIZE)
		{
			link = new Link(BUFSIZE+(int)TransSize.ACKSIZE);
			checksum = new Checksum();
			buffer = new byte[BUFSIZE+(int)TransSize.ACKSIZE];
			seqNo = 0;
			old_seqNo = DEFAULT_SEQNO;
			errorCount = 0;
		}
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Transport"/> class.
 /// </summary>
 public Transport(int BUFSIZE)
 {
     link = new Link(BUFSIZE + HEADER_SIZE);
     checksum = new Checksum();
     TRANSBUFSIZE = BUFSIZE;
     buffer = new byte[TRANSBUFSIZE + HEADER_SIZE];
     seqNo = 0;
     old_seqNo = DEFAULT_SEQNO;
     errorCount = 0;
 }