Welcome Guest ( Log In | Register )

> SDK Delphi component
blert
post Jun 27 2008, 05:54 PM
Post #1


Newbie
*

Group: Members
Posts: 8
Joined: 27-June 08
Member No.: 545



Hello Serge. This is Chris, probably better known to you as blert. I wrote the Delphi7 component for your SDK. I've been MIA for a while but am slowly trying to get back into things.

I came to download the latest and greatest versions of AMIP and the SDK and noticed that there have been some changes to the SDK that need to be applied to the Delphi component. I made all the changes and fired up my example application and the server is not loading. sad.gif Using FB2K v0.9.5.3 with all the latest AMIP stuff. All settings seem to be correct. Am I missing something that I have forgotten in my long absence?

Update:
I commented out all server stuff from my example appication to test just client stuff and it seems none of it is working. Am I missing something in FB2K that I need to turn on?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
blert
post Jun 30 2008, 12:46 AM
Post #2


Newbie
*

Group: Members
Posts: 8
Joined: 27-June 08
Member No.: 545



Not a firewall issue, and Process Explorer shows listening on port 60334. Server settings in AMIP Configurator is set to 127.0.0.1:60334.

I had the ports backwards in my code. blink.gif Not sure how as this code worked last time I was mucking with it (long time ago).
Original code...
CODE

    // start server
    if AMIPWrapper1.ac_init_server('127.0.0.1', 60334) <> 1 then
      ...
    //start client
    if AMIPWrapper1.ac_init_client('127.0.0.1', 60333, 1000, 5, 1) <> 1 then
      ...
    //add event listener
    if AMIPWrapper1.ac_add_event_listener('127.0.0.1', 60334, 1000, AC_EVT_ALL, 1) <>  C_ERR_NOERROR then
      ...

I switched the ports in the code to...
CODE

    // start server
    if AMIPWrapper1.ac_init_server('127.0.0.1', 60333) <> 1 then
      ...
    //start client
    if AMIPWrapper1.ac_init_client('127.0.0.1', 60334, 1000, 5, 1) <> 1 then
      ...
    //add event listener
    if AMIPWrapper1.ac_add_event_listener('127.0.0.1', 60333, 1000, AC_EVT_ALL, 1) <> AC_ERR_NOERROR then
      ...

...and all works great.

After I run a few more tests and make some changes to the example app I will send you the updated component package.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: