Ejemplo n.º 1
0
        /// <summary>
        /// Constructor of the client class
        /// </summary>
        /// <param name="client"></param>
        /// <param name="bufferSize"></param>
        /// <param name="form"></param>
        public Client(TcpClient client, int bufferSize, MultiChat form)
        {
            this.BufferSize = bufferSize;
            this.client     = client;
            this.form       = form;

            Guid guid = Guid.NewGuid();

            id = guid.ToString();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor of the Server class
 /// </summary>
 /// <param name="port"></param>
 /// <param name="bufferSize"></param>
 /// <param name="form"></param>
 public Server(int port, int bufferSize, MultiChat form)
 {
     this.bufferSize = bufferSize;
     this.port       = port;
     this.form       = form;
 }