{{htmlmetatags>metatag-robots=() metatag-title=(CREATE PORT | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for CREATE PORT) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(CREATE PORT | ugBASIC User Manual) metatag-og:description=(Manual page for CREATE PORT) }} ====== ugBASIC User Manual ====== ===== CREATE PORT ===== ===== SYNTAX ===== = CREATE PORT( sessionId, application ) ==== PURPOSE ==== The ''CREATE PORT'' function create a message port where receive messages. The ''sessionId'' parameter is the same one that returned the call to ''LOGIN'' function, and identifies the working session at that moment. The ''application'' parameter represents, instead, the name of the application or functionality with which you want to associate this message port. The message port (mailbox) is owned by the user but also by each individual application or application functionality. Therefore, it is possible to define more than one mailbox (i.e., a port) for a single user, as long as each of them is identified by a different application code. ==== EXAMPLE ==== sessionId = LOGIN( "user", "password" ) port = CREATE PORT( sessionId, "testApp" ) ==== ABBREVIATION ==== CrtPrt ==== AVAILABLE ON ==== * Commodore 64 * Commodore 64+REU * TRS-80 Color Computer 3 * TRS-80 Color Computer ==== ALIAS FOR ==== [[DOJO CREATE PORT]] ==== ANY PROBLEM? ==== If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON CREATE PORT|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]