Question & Answer
Question
How do you make a remote client connection to RhapsodyCL using socket mode?
Cause
You want to connect as a client to RhapsodyCL in socket mode
Answer
RhapsodyCL can be used a remote TCP/IP server. This is known as socket mode.
The attached example (at the bottom of the page) demonstrates how to programmatically connect to RhapsodyCL in socket mode.
- Connect to RhapsodyCL using a Socket.
- Send a command via the socket using standard RhapsodyCL commands.
- Request the status on the previous task using the "GetCommandResult" command and listen for a return code reply.
Screen shots:
Running CG remotely via TCP socket
Handling invalid commands and error return codes
[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1;8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg22016794