User Tools

Site Tools


ugbasic:user:kw:find_port
Translations of this page:


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

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY