Available on: c64 c64reu coco3 coco
Alias: DOJO FIND PORT

FIND PORT

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).

SYNTAX

 port = FIND PORT( sessionId, username, application )


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 sessionId = LOGIN( "user", "password" )
 port = FIND( sessionId, "user2", "testApp" )


ABBREVIATION: FndPrt

Join BASIC 10Liner Contest with ugBASIC!

An interesting competition is held at the beginning of each year: the BASIC 10Liner Contest. It is possible to use ugBASIC to participate in the next "BASIC10Liner" competition, in the following categories:

  • PUR-120 - A game in 10 lines of max 120 characters (w/abbrev.)
  • EXTREME-256 - A game in 10 lines of max 256 characters (w/abbrev.)
  • SCHAU - Any program in 10 lines of max 256 characters (w/abbrev.)
In order to reduce space you can use this abbreviation for this instruction:

FIND PORT ↔ FndPrt

Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS