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 |
uplate |
Oct 15 2007, 12:40 PM
Post
#2
|
Member Group: Members Posts: 21 Joined: 10-October 07 Member No.: 391 |
::phew::..finally got boost/asio/rcf compiled and working on FreeBSD, can't wait to start writing clients for amip/server.
thank so much for your help so far! max |
uplate |
Oct 15 2007, 11:39 PM
Post
#3
|
Member Group: Members Posts: 21 Joined: 10-October 07 Member No.: 391 |
OK, so I've tried writing a basic program to ping AMIP:
CODE #include <iostream> #include <string> #include <RCF/Idl.hpp> #include <RCF/TcpEndpoint.hpp> #include <RCF/Exception.hpp> RCF_BEGIN(Amip, "Amip"); RCF_METHOD_R0(std::string, ping); RCF_END(Amip); int main() { try { RcfClient<Amip> amipClient( RCF::TcpEndpoint( "192.168.0.203", 60333 ) ); std::cout << amipClient.ping() << std::endl; } catch( RCF::Exception ex ) { std::cout << ex.what() << std::endl; } return 0; } When I run the program, I get the following error: CODE [uplate@~/devel/src/amip-client]> ./amipclient Marshal.cpp(67): void RCF::IDL::doInReturnValue(RCF::ClientStub&, RCF::SerializationProtocolIn&, RCF::SerializationProtocolOut&, bool): : Thread-id=134774784 : Timestamp(ms)=63383011: THROW : ClientTransportException: server response timed out: totalTimeoutMs=10000, typeid(connection)=N3RCF22TcpAsioClientTransportE, I'm sure that the amip server is up and running on 192.168.0.203:60333 because I can telnet to it..is my code bad or is this a problem with my installation of RCF/asio do you think? Thanks, Max |