Ví dụ 17.3
Chúng tôi muốn viết hai chương trình để hiển thị như thế nào chúng ta có thể có một khách hàng echo và vang máy chủ bằng cách sử dụng
các dịch vụ của TCP. Hình 17.13 cho thấy các biến, chúng tôi sử dụng trong hai chương trình này. Kể từ khi dữ liệu
có thể đến trong khối khác nhau, chúng ta cần con trỏ để trỏ đến bộ đệm. Các bộ đệm đầu tiên là cố định và
luôn luôn chỉ vào đầu của bộ đệm; con trỏ thứ hai là di chuyển để cho các byte đến
được gắn vào phần cuối của phần trước.
đang được dịch, vui lòng đợi..