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 21 2007, 11:35 AM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
Using listeners is a bit complicated and requires a server on your side to accept connections with different IDL. It's not needed if you just want to use exec/eval commands.
Exec command executes AMIP API command (see the manual for the list of the commands). 3 parameters is a legacy thing from the DDE API used before. Actually you need to split the API command into 3 strings by spaces and pass them to this function. If there are less than 3 words in the string, pass empty string. Like for "control pause" client->exec("control", "pause", ""); If you need more information, I can provide you sources of ac.dll so that you see how it works (contact me by mail). Note that ac.dll also includes mIRC API, so the code is not very clean. |
uplate |
Oct 24 2007, 01:51 AM
Post
#3
|
Member Group: Members Posts: 21 Joined: 10-October 07 Member No.: 391 |
thanks for the information, and the source has been quite helpful :-). ac_exec( one, two, three) is now working for this program.
|