API Support Forum
OEC API > API Support > Remoting and Events
Author Topic: Remoting and Events
(5 messages, Page 1 of 1)
Moderators: VPfau
DComolli
Posts: 15
Joined: May 16, 2008


Posted: May 16, 2008 @ 12:17 PM             Msg. 1 of 5
I am trying to test remoting and I am unable to get the remote system to receive and events other than logon failed.

I am working with your simple sample program, changing the new OEC.API.OECClient(); to OEC.API.OECClient.CreateInstance(true); .

I then log in using the OEC Trader Dev application and enable remoting from the menu. I then connect using the sample. The sample comes up and thinks it is connected, but no events are fired if a new trade is created in the OEC Trader Dev application.

I have also tried this using a very simple VB.NET program and I get the same results.

What needs to be done in order to get the "remote" system to see the events?

Thanks,

Dana
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 16, 2008 @ 12:33 PM             Msg. 2 of 5
you might have different API.dll versions in the trader and API example - please check and, if different, replace api.dll in the sample API folder with the one from the trader app and then rebuild the sample.

regarding events: Did you see "Remoting enabled" line in the sample's output?
Have you received any other update (price, position, balance, dom)?

Do you have "File/Allow Remoting" menu item checked in the trader application?
DComolli
Posts: 15
Joined: May 16, 2008


Posted: May 16, 2008 @ 01:00 PM             Msg. 3 of 5
Thanks, that fixed it.

Dana
DComolli
Posts: 15
Joined: May 16, 2008


Posted: May 16, 2008 @ 03:24 PM             Msg. 4 of 5
Any way to have the multiple clients connect from separate computers? My initial try shows that using CreateInstance on one computer causes the api instance on the other computer to disconnect.

Dana
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 16, 2008 @ 03:55 PM             Msg. 5 of 5
No, we do not support that. API remoting works only on the same computer.