Dreamine.IO.Fastech.Ethernet 1.0.1
Dreamine.IO.Fastech.Ethernet 산업 자동화 및 I/O 기능을 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions 클래스 참조sealed

더 자세히 ...

Public 멤버 함수

IoConnectionOptions ToIoConnectionOptions ()

속성

string Host = "127.0.0.1" [get, set]
int Port = 3001 [get, set]
int LocalPort [get, set]
FastechEthernetIoTransportType TransportType = FastechEthernetIoTransportType.Udp [get, set]
int DeviceIndex [get, set]
int ConnectTimeoutMs = 3000 [get, set]
int ReceiveTimeoutMs = 3000 [get, set]
int RetryCount = 1 [get, set]
int ExpectedResponseLength [get, set]
IDictionary< string, string > Properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) [get]

상세한 설명

Fastech Ethernet I/O 연결, 시간 제한 및 프로토콜 확장 옵션을 나타냅니다.

FastechEthernetIoOptions.cs 파일의 14 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ ToIoConnectionOptions()

IoConnectionOptions Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.ToIoConnectionOptions ( )
inline

현재 설정을 공급자 독립 I/O 연결 옵션으로 변환합니다.

반환값
Fastech 공급자와 연결 속성을 포함하는 새 옵션입니다.

FastechEthernetIoOptions.cs 파일의 132 번째 라인에서 정의되었습니다.

133 {
134 var options = new IoConnectionOptions
135 {
136 Provider = IoProvider.Fastech,
137 DeviceIndex = DeviceIndex,
138 Name = Host
139 };
140
141 options.Properties["Host"] = Host;
142 options.Properties["Port"] = Port.ToString();
143 options.Properties["LocalPort"] = LocalPort.ToString();
144 options.Properties["ConnectTimeoutMs"] = ConnectTimeoutMs.ToString();
145 options.Properties["ReceiveTimeoutMs"] = ReceiveTimeoutMs.ToString();
146 options.Properties["RetryCount"] = RetryCount.ToString();
147
148 foreach (var property in Properties)
149 {
150 options.Properties[property.Key] = property.Value;
151 }
152
153 return options;
154 }

다음을 참조함 : ConnectTimeoutMs, DeviceIndex, Host, LocalPort, Port, Properties, ReceiveTimeoutMs, RetryCount.

속성 문서화

◆ ConnectTimeoutMs

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.ConnectTimeoutMs = 3000
getset

연결 시간 제한을 밀리초 단위로 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 74 번째 라인에서 정의되었습니다.

74{ get; set; } = 3000;

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ DeviceIndex

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.DeviceIndex
getset

보드, 장치 또는 컨트롤러 인덱스를 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 64 번째 라인에서 정의되었습니다.

64{ get; set; }

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ ExpectedResponseLength

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.ExpectedResponseLength
getset

예상 응답 길이를 가져오거나 설정합니다. 0이면 첫 수신 패킷이 끝날 때까지 읽습니다.

FastechEthernetIoOptions.cs 파일의 104 번째 라인에서 정의되었습니다.

104{ get; set; }

◆ Host

string Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.Host = "127.0.0.1"
getset

대상 호스트 이름 또는 IP 주소를 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 24 번째 라인에서 정의되었습니다.

24{ get; set; } = "127.0.0.1";

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ LocalPort

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.LocalPort
getset

로컬 UDP 포트를 가져오거나 설정합니다. 0이면 Windows가 임시 원본 포트를 선택합니다.

FastechEthernetIoOptions.cs 파일의 44 번째 라인에서 정의되었습니다.

44{ get; set; }

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ Port

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.Port = 3001
getset

대상 포트를 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 34 번째 라인에서 정의되었습니다.

34{ get; set; } = 3001;

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ Properties

IDictionary<string, string> Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.Properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
get

구체 프로토콜 구현만 해석해야 하는 공급자별 속성 사전을 가져옵니다.

FastechEthernetIoOptions.cs 파일의 114 번째 라인에서 정의되었습니다.

114{ get; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ ReceiveTimeoutMs

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.ReceiveTimeoutMs = 3000
getset

수신 시간 제한을 밀리초 단위로 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 84 번째 라인에서 정의되었습니다.

84{ get; set; } = 3000;

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ RetryCount

int Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.RetryCount = 1
getset

실패 후 재시도 횟수를 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 94 번째 라인에서 정의되었습니다.

94{ get; set; } = 1;

다음에 의해서 참조됨 : ToIoConnectionOptions().

◆ TransportType

FastechEthernetIoTransportType Dreamine.IO.Fastech.Ethernet.Options.FastechEthernetIoOptions.TransportType = FastechEthernetIoTransportType.Udp
getset

Ethernet 전송 형식을 가져오거나 설정합니다.

FastechEthernetIoOptions.cs 파일의 54 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : Dreamine.IO.Fastech.Ethernet.Controllers.FastechEthernetIoController.CreateTransport().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: