Difference between revisions of "ApCoCoA-1:BBF.SwitchPort"

From ApCoCoAWiki
(Added parameter and return value list.)
(Key and see section update.)
Line 22: Line 22:
 
</example>
 
</example>
 
     </description>
 
     </description>
     <see>Border Basis Framework overview</see>
+
     <see>BB.BBasis</see>
     <see>BBasis</see>
+
     <key>SwitchPort</key>
     <key>kaspar</key>
+
     <key>BBF.SwitchPort</key>
     <key>bbf.switchport</key>
+
     <key>bbf.SwitchPort</key>
 
     <wiki-category>Package_bbf</wiki-category>
 
     <wiki-category>Package_bbf</wiki-category>
 
</command>
 
</command>

Revision as of 18:33, 22 April 2009

BBF.SwitchPort

Change ApCoCoABBFServer communication port.

Syntax

BBF.SwitchPort(NewPort:INT):INT

Description

Use NewPort (>= 48112) as new port number for communication with ApCoCoABBFServer. This is useful if you want to run more than one instance of the ApCoCoABBFServer at the same time. You can associate a port number to the ApCoCoABBFServer on startup via the --port flag.

The output of this function is the previously used port number for communication with the ApCoCoABBFServer.

  • @param NewPort New port number for communication with ApCoCoABBFServer.

  • @return The previously used port number.

Beta Warning: This method, package or class is a beta version. It may not work as intended or its interface may change in the next version! So please be careful when you're intending to use it. It is very likely to happen that the port switching functionality will be changed in future releases as soon as a more sophisticated multiple computation handling has been implemented.

Example

BBF.SwitchPort(48113);
48112
-------------------------------

BB.BBasis