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
).
port = FIND PORT( sessionId, username, application )
sessionId = LOGIN( "user", "password" ) port = FIND( sessionId, "user2", "testApp" )
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:
FIND PORT ↔ FndPrt
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