Access AMIP socket server from *nix |
Access AMIP socket server from *nix |
uplate |
Oct 10 2007, 02:03 AM
Post
#1
|
Member Group: Members Posts: 21 Joined: 10-October 07 Member No.: 391 |
Hi, I am interested in trying to access AMIP from *nix. It appears that AMIP server creates a TCP socket connection that should be able to be accessed remotely. Can you give some indication on how this could be done?
I've tried with socket and telnet, but both indicate that the AMIP hosting machine refuses the connection. My setup: [WIN] AMIP Server:40581 [NIX] Client access: `telnet WIN 40581` `socket WIN 40581` Thanks |
Serge |
Oct 10 2007, 09:01 AM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
AMIP uses specific protocol, application which connects must be created using the RCF for C++.
In AMIP API/Server settings set the correct bind address (0.0.0.0 for all interfaces, otherwise, AMIP will listen only on 127.0.0.1, thus making it impossible to connect from another machines). AMIP's RCF interface IDL: CODE RCF_BEGIN(MyService, "MyService"); RCF_METHOD_V3(void, exec, std::string, std::string, std::string); RCF_METHOD_R2(std::string, eval, std::string, std::string); RCF_METHOD_R0(std::string, ping); RCF_METHOD_V5(void, add_event_listener, std::string, int, int, UINT, UINT); RCF_METHOD_V2(void, remove_event_listener, std::string, int); RCF_METHOD_R0(std::vector<std::string>, get_pltitles); RCF_END(MyService); Current AMIP version is built with RCF 0.4 and will not work with 0.9, the next version will be build with RCF 0.9c. |