|
Dreamine.IO.Fastech.Ethernet 1.0.1
Dreamine.IO.Fastech.Ethernet 산업 자동화 및 I/O 기능을 제공합니다.
|


Public 멤버 함수 | |
| TcpFastechEthernetIoTransport (FastechEthernetIoOptions options) | |
| async Task< IoResult > | ConnectAsync (CancellationToken cancellationToken=default) |
| async Task< IoResult > | DisconnectAsync (CancellationToken cancellationToken=default) |
| async Task< IoResult< byte[]> > | SendAndReceiveAsync (IReadOnlyList< byte > requestFrame, int receiveTimeoutMs, int expectedResponseLength, CancellationToken cancellationToken=default) |
| async ValueTask | DisposeAsync () |
속성 | |
| bool | IsConnected [get] |
Private 멤버 함수 | |
| Task | CloseCoreAsync () |
| void | ThrowIfDisposed () |
정적 Private 멤버 함수 | |
| static async Task< byte[]> | ReadExactlyAsync (NetworkStream stream, int length, CancellationToken cancellationToken) |
| static async Task< byte[]> | ReadAvailableAsync (NetworkStream stream, CancellationToken cancellationToken) |
Private 속성 | |
| readonly SemaphoreSlim | _syncLock = new(1, 1) |
| readonly FastechEthernetIoOptions | _options |
| TcpClient? | _tcpClient |
| NetworkStream? | _stream |
| bool | _disposed |
정적 Private 속성 | |
| const int | DefaultReceiveBufferSize = 4096 |
Fastech Ethernet I/O 통신을 위한 TCP 전송을 제공합니다.
TcpFastechEthernetIoTransport.cs 파일의 15 번째 라인에서 정의되었습니다.
|
inline |
TcpFastechEthernetIoTransport 클래스의 새 인스턴스를 초기화합니다.
| ArgumentNullException | options 가 null인 경우 발생합니다. |
TcpFastechEthernetIoTransport.cs 파일의 97 번째 라인에서 정의되었습니다.
다음을 참조함 : _options.
|
inlineprivate |
내부 TCP 스트림과 클라이언트를 닫고 참조를 초기화합니다.
TcpFastechEthernetIoTransport.cs 파일의 554 번째 라인에서 정의되었습니다.
다음을 참조함 : _stream, _tcpClient.
다음에 의해서 참조됨 : ConnectAsync(), DisconnectAsync().

|
inline |
구성된 호스트와 포트에 TCP 연결을 설정합니다.
| cancellationToken | 연결 작업 취소를 관찰하는 토큰입니다. |
| OperationCanceledException | 동기화 잠금을 기다리는 동안 cancellationToken 이 취소된 경우 발생합니다. |
Dreamine.IO.Fastech.Ethernet.Transport.IFastechEthernetIoTransport를 구현.
TcpFastechEthernetIoTransport.cs 파일의 144 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, _stream, _syncLock, _tcpClient, CloseCoreAsync(), IsConnected, ThrowIfDisposed().

|
inline |
현재 TCP 연결과 스트림을 닫습니다.
| cancellationToken | 연결 해제 작업 취소를 관찰하는 토큰입니다. |
| OperationCanceledException | 동기화 잠금을 기다리는 동안 cancellationToken 이 취소된 경우 발생합니다. |
Dreamine.IO.Fastech.Ethernet.Transport.IFastechEthernetIoTransport를 구현.
TcpFastechEthernetIoTransport.cs 파일의 235 번째 라인에서 정의되었습니다.
다음을 참조함 : _syncLock, CloseCoreAsync().
다음에 의해서 참조됨 : DisposeAsync().


|
inline |
연결과 동기화 리소스를 비동기적으로 해제합니다.
TcpFastechEthernetIoTransport.cs 파일의 396 번째 라인에서 정의되었습니다.
다음을 참조함 : _disposed, _syncLock, DisconnectAsync().

|
inlinestaticprivate |
스트림에서 현재 수신 가능한 데이터를 한 번 읽습니다.
| stream | 읽을 네트워크 스트림입니다. |
| cancellationToken | 읽기 취소를 관찰하는 토큰입니다. |
| IOException | 데이터를 읽기 전에 원격 끝점이 연결을 닫은 경우 발생합니다. |
TcpFastechEthernetIoTransport.cs 파일의 523 번째 라인에서 정의되었습니다.
다음을 참조함 : DefaultReceiveBufferSize.
다음에 의해서 참조됨 : SendAndReceiveAsync().

|
inlinestaticprivate |
스트림에서 지정된 바이트 수를 모두 읽습니다.
| stream | 읽을 네트워크 스트림입니다. |
| length | 읽어야 할 바이트 수입니다. |
| cancellationToken | 읽기 취소를 관찰하는 토큰입니다. |
| IOException | 요청된 길이를 읽기 전에 원격 끝점이 연결을 닫은 경우 발생합니다. |
TcpFastechEthernetIoTransport.cs 파일의 458 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : SendAndReceiveAsync().

|
inline |
요청 프레임을 전송하고 TCP 응답 프레임을 수신합니다.
| requestFrame | 전송할 요청 바이트입니다. |
| receiveTimeoutMs | 밀리초 단위의 수신 제한 시간입니다. |
| expectedResponseLength | 기대하는 응답 길이이며, 0이면 한 번에 사용 가능한 데이터를 읽습니다. |
| cancellationToken | 송수신 작업 취소를 관찰하는 토큰입니다. |
| ArgumentNullException | requestFrame 이 null인 경우 발생합니다. |
| OperationCanceledException | 동기화 잠금을 기다리는 동안 cancellationToken 이 취소된 경우 발생합니다. |
Dreamine.IO.Fastech.Ethernet.Transport.IFastechEthernetIoTransport를 구현.
TcpFastechEthernetIoTransport.cs 파일의 318 번째 라인에서 정의되었습니다.
다음을 참조함 : _stream, _syncLock, _tcpClient, ReadAvailableAsync(), ReadExactlyAsync(), ThrowIfDisposed().

|
inlineprivate |
이 전송 객체가 이미 해제되었으면 예외를 발생시킵니다.
| ObjectDisposedException | 객체가 이미 해제된 경우 발생합니다. |
TcpFastechEthernetIoTransport.cs 파일의 586 번째 라인에서 정의되었습니다.
다음을 참조함 : _disposed.
다음에 의해서 참조됨 : ConnectAsync(), SendAndReceiveAsync().

|
private |
disposed 값을 보관합니다.
TcpFastechEthernetIoTransport.cs 파일의 71 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : DisposeAsync(), ThrowIfDisposed().
|
private |
options 값을 보관합니다.
TcpFastechEthernetIoTransport.cs 파일의 44 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectAsync(), TcpFastechEthernetIoTransport().
|
private |
stream 값을 보관합니다.
TcpFastechEthernetIoTransport.cs 파일의 62 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : CloseCoreAsync(), ConnectAsync(), SendAndReceiveAsync().
|
private |
sync Lock 값을 보관합니다.
TcpFastechEthernetIoTransport.cs 파일의 35 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectAsync(), DisconnectAsync(), DisposeAsync(), SendAndReceiveAsync().
|
private |
tcp Client 값을 보관합니다.
TcpFastechEthernetIoTransport.cs 파일의 53 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : CloseCoreAsync(), ConnectAsync(), SendAndReceiveAsync().
|
staticprivate |
Default Receive Buffer Size 값을 보관합니다.
TcpFastechEthernetIoTransport.cs 파일의 25 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ReadAvailableAsync().
|
get |
TCP 클라이언트와 네트워크 스트림이 연결되어 있는지 여부를 가져옵니다.
Dreamine.IO.Fastech.Ethernet.Transport.IFastechEthernetIoTransport를 구현.
TcpFastechEthernetIoTransport.cs 파일의 110 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectAsync().