{{htmlmetatags>metatag-robots=() metatag-title=(FIND PORT | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for FIND PORT) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(FIND PORT | ugBASIC User Manual) metatag-og:description=(Manual page for FIND PORT) }} ====== ugBASIC User Manual ====== ===== FIND PORT ===== ===== SYNTAX ===== port = FIND PORT( sessionId, username, application ) ==== PURPOSE ==== The ''FIND PORT'' function is needed to find out a port where to send message. To send a message, we need to know the address of that message port. A message box is identified by a unique identifier, called ''portId''. So the first useful operation is to find out the port id to use to send the message. This is exactly the purpose of this function. So basically three pieces of information are needed to identify that mailbox. First of all, you need an identifier that allows the user to be recognized by the DOJO server (''sessionId''). Secondly, you need to know the identifier of the user who owns that mailbox (''username''). Finally, it is essential to know the name of the application on whose behalf we are looking for the mailbox (''application''). ==== EXAMPLE ==== sessionId = LOGIN( "user", "password" ) port = FIND( sessionId, "user2", "testApp" ) ==== ABBREVIATION ==== FndPrt ==== AVAILABLE ON ==== * Commodore 64 * Commodore 64+REU * TRS-80 Color Computer 3 * TRS-80 Color Computer ==== ALIAS FOR ==== [[DOJO FIND 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 FIND PORT|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]