TcpChannel 클래스
TCP 클라이언트 기반 통신 채널
네임스페이스: VagabondK.Protocols.Channels
어셈블리: VagabondK.Protocols.Channels.dll
구문
public class TcpChannel : Channel, IChannel, IDisposable
생성자
| 이름 | 설명 |
|---|---|
| TcpChannel(string, int) | 생성자 |
| TcpChannel(string, int, int) | 생성자 |
속성
| 이름 | 설명 |
|---|---|
| BytesToRead | 수신 버퍼에 있는 데이터의 바이트 수입니다. |
| ConnectTimeout | 연결 제한시간(밀리초) |
| Connected | TCP 채널 연결 여부 |
| Description | 채널 설명 |
| Host | 호스트 |
| Port | 포트 |
메서드
| 이름 | 설명 |
|---|---|
| Close() | 채널 닫기 |
| Dispose() | 리소스 해제 |
| ~TcpChannel() | 소멸자 |
| Read(int) | 1 바이트 읽기 |
| Read(uint, int) | 여러 개의 바이트 읽기 |
| ReadAllRemain() | 채널에 남아있는 모든 바이트 읽기 |
| Write(byte[]) | 바이트 배열 쓰기 |