Remote

Remote linkはリモートサーバ, あるいは, AUTDシミュレータに接続する際に使うLinkである.

Install

cargo add autd3-link-remote
target_link_libraries(<TARGET> PRIVATE autd3::link::remote)

メインライブラリに含まれている.

メインライブラリに含まれている.

メインライブラリに含まれている.

APIs

RemoteのコンストラクタにはサーバのIPアドレスとポート番号を指定する. オプションでタイムアウトを指定できる.

use autd3_link_remote::{Remote, RemoteOption};

fn main() -> Result<(), Box<dyn std::error::Error>> {
let _ = 
Remote::new("127.0.0.1:8080".parse()?, RemoteOption { timeout: None });
Ok(())
}
#include <optional>

#include "autd3/link/remote.hpp"

int main() {
using namespace autd3;
link::Remote("127.0.0.1:8080", link::RemoteOption{.timeout = std::nullopt});
return 0; }
using System.Net;
using AUTD3Sharp.Link;

new Remote(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8080), new RemoteOption
{
    Timeout = null,
});
from pyautd3.link.remote import Remote, RemoteOption

Remote("127.0.0.1:8080", RemoteOption(timeout=None))