노트이러한 맥락에서 EK80 프로세서 유닛을 "서버"라고 부르고, EK80 프로그램을 "서버 응용 프로그램"이라고 부를 수 있습니다.
그리고 로컬 컴퓨터에서 실행할 목적으로 직접 개발한 프로그램을 "클라이언트 응용 프로그램"이라고 일컫습니다.
RequestServerInfo
다음 RequestServerInfo 메시지를 프로세서 유닛의 특정 IP 주소로 전송하거나 LAN을 통해 브로드캐스팅하여 모든 컴퓨터로부터 정보를 가져옵니다.
메시지는 EK80 프로그램의 Installation(설치) 대화 상자에서 Remote Control - Server(원격 제어 - 서버) 페이지의 Local port(로컬 포트) 필드에 있는 사용자 데이터그램 프로토콜(UDP) 포트 번호로 전송해야 합니다.
struct RequestServerInfo
{
char Header[4]; // ”RSI\0”
};
ServerInfo2
EK80 프로세서 유닛이 EK80 프로그램에 대한 정보가 포함된 메시지로 정보를 요청하는 클라이언트 응용 프로그램에게 응답합니다. ServerInfo2 메시지 내용은 아래와 같습니다.
struct ServerInfo2
{
char Header[4]; // ”SI2\0”
char ApplicationType[64];
char ApplicationName[64]; // Name of the current server application (EK80)
char ApplicationDescription[128]; // Description of the current application
long ApplicationID; // ID of the current application
long CommandPort; // Port number to send commands to
long Mode; // If the server application (EK80) is running
// against the local data source or a remote data source
char HostName[64]; // IP address of the 프로세서 유닛 the server
// application is running on
};
CommandPort
이제부터는 EK80 프로세서 유닛 UDP 포트 번호인 CommandPort를 사용해 명령을 EK80 프로그램에 전송해야 합니다.