It is currently Tue May 21, 2013 10:57 am


All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Fix for slow TCP/IP socket (lan) Altia API on Windows Vista
PostPosted: Sun Apr 22, 2007 2:45 pm 
V.P. of Engineering

Joined: Wed Aug 02, 2006 3:15 pm
Posts: 67
Location: Altia Colorado Springs HQ
While testing Altia Design for Windows Vista, it was noticed that client applications linked with the TCP/IP socket (lan) version of the Altia API are slow to communicate with an Altia Design or Altia Runtime executing on the same computer. The communications performance is normal when the client application is not running on the same computer as Altia Design or Altia Runtime.

The solution is to specify localhost or 127.0.0.1 as the host when initializing the Altia API for the client application (versus just specifying a socket number or specifying nothing to use the default socket 5100).

For example, if the client application is passing argc and argv to AtStartInterface() or AtOpenConnection, then start the client application with arguments like:

application.exe -port localhost:5100

or:

application.exe -port 127.0.0.1:5100

If the client application is just passing something like ":5100" as the socket to AtStartInterface() or AtOpenConnection() or altiaConnect(), change the code to pass "localhost:5100" or "127.0.0.1:5100".

If there is no way to get a new socket description into the client (because it is ignoring command line arguments and it cannot be recompiled), another option is to set the environment variable ALTIAPORT before starting the application. In a command prompt or batch script, this is done with:

set ALTIAPORT=localhost:5100

It can also be done on a system-wide basis from the Environment Variables dialog (In Windows Vista, open Control Panel, choose System, choose Advanced system settings option, and press Environment Variables... button in the Advanced tab of the System Properties dialog).

_________________
Tom Walton
Altia, Inc.


Top
Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net