TransportOption
TransportOption { iface, send_buffer_bytes, sync_on_open, heartbeat_interval, ..Default::default()};TransportOption( iface=iface, send_buffer_bytes=send_buffer_bytes, sync_on_open=sync_on_open, heartbeat_interval=heartbeat_interval,)new TransportOption{ Iface = iface, SendBufferBytes = sendBufferBytes, SyncOnOpen = syncOnOpen, HeartbeatInterval = heartbeatInterval,};| フィールド | 型 | 既定値 | 説明 |
|---|---|---|---|
iface |
Interface |
Auto |
接続先 |
send_buffer_bytes |
Option<NonZeroUsize> |
8192 | ソケットの送信バッファの大きさ [B]. None で OS の既定のままにする |
sync_on_open |
bool |
true |
false なら open 時にデバイス間の同期を待たない |
heartbeat_interval |
Option<Duration> |
None |
指定するとその周期で生存確認を送り続ける (フェイルセーフ 参照) |
基本的に iface と heartbeat_interval 以外を変更することは推奨しない.
Interface
Section titled “Interface”Interface::Auto;Interface::Name("eth0".to_string());Interface::Addr("[::1]:44336".parse()?);Interface.AutoInterface.Name("eth0")Interface.Addr("[::1]:44336")_ = Interface.Auto;_ = Interface.Name("eth0");_ = Interface.Addr("[::1]:44336");| 値 | 接続先 |
|---|---|
Auto |
デバイスが最初に応答したネットワークインタフェース |
Name(..) |
名前で指定したネットワークインタフェースにつながっている実機 |
Addr(..) |
指定した IPv6 アドレスとポート. Simulator へは [::1]:44336 でつなぐ |