Table of Contents

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

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 open an issue for this keyword on GitHub. Thank you!

POWERED BY