You can invite a colleague to the Developer Community and earn points through the InterSystems Global Masters Advocate Hub. This option is available as part of a challenge within the platform. You can navigate to the "Later" tab of your challenges on Global Masters to find the option to send an invite [1].
Sources:
The ObjectScript commands you are using to open a TCP connection and write to it appear correct based on InterSystems IRIS documentation.
-
Opening a TCP connection: To initiate a TCP connection, the
OPEN
command syntax is correct. When usingOPEN "|TCP|"_PORT:(IP::"PSE"):10
, PORT should be in the allowed range, and IP provided should be an IPv4 address (e.g., "10.200.100.50"). TheOPEN
command reserves and initiates the device for communication, setting$TEST
to 1 upon success [1]. -
Writing to the TCP connection: Using the
WRITE
command withUSE
to specify the TCP device is correct. Particularly, the control*-3
flushes the output buffer forcing a write operation to the physical device. The control ensures that data moves from the TCP device buffer to the network buffer, and then to the physical device [1][2]. In the case of TCP communication, this approach is standard for ensuring immediate data transmission without buffering [1]. -
Operating System Handling: The TCP device I/O in InterSystems IRIS leverages underlying operating system mechanisms for network communication. ObjectScript commands such as
OPEN
,USE
,WRITE
, andCLOSE
interact with these mechanisms to establish connections, send or receive data, and close the connections gracefully [1].
Errors you are facing may be related to network configurations, firewalls, or incorrect VPN setups and not necessarily the syntax or execution of ObjectScript commands. The network team may need to investigate connection-specific issues on the firewall or VPN [1].
Sources:
To ensure InterSystems IRIS does not care about the case sensitivity of JSON field names when using
%JSON.Adaptor
, you can utilize the%JSONFIELDNAME
parameter. This parameter allows you to define an alias for a property name, mapping it explicitly to the corresponding JSON field name. For example:With this configuration, the fields in JSON
{ "name": "John", "surname": "Doe" }
will correctly map to the propertiesName
andSurname
in the class without any case sensitivity issues [1][2].Sources: