Tmax Programming Guide (UCS)

Tmax v5.0 SP2 Fix #1

Restricted Rights Legend

All TmaxSoft Software (Tmax®) and documents are protected by copyright laws and international convention. TmaxSoft software and documents are made available under the terms of the TmaxSoft License Agreement and may only be used or copied in accordance with the terms of this agreement. No part of this document may be transmitted, copied, deployed, or reproduced in any form or by any means, electronic, mechanical, or optical, without the prior written consent of TmaxSoft Co., Ltd.

Nothing in this software document and agreement constitutes a transfer of intellectual property rights regardless of whether or not such rights are registered) or any rights to TmaxSoft trademarks, logos, or any other brand features.

This document is for information purposes only. The company assumes no direct or indirect responsibilities for the contents of this document, and does not guarantee that the information contained in this document satisfies certain legal or commercial conditions.

The information contained in this document is subject to change without prior notice due to product upgrades or updates. The company assumes no liability for any errors in this document.

Trademarks

Tmax®, Tmax WebtoB® and JEUS® are registered trademark of TmaxSoft Co., Ltd. Other products, titles or services may be registered trademarks of their respective companies.

Open Source Software Notice

Some modules or files of this product are subject to the terms of the following licenses: openssl-0.9.7.m, zlib-1.1.4, expat-2.0.0, netsnmp, DCE1.0, pthread, google-diff-match-patch, libevent, getopt.

Detailed Information related to the license can be found in the following directory: ${INSTALL_PATH}/license/oss_licenses.

Document Information

Document Name: Tmax Programming Guide (UCS)

Document Created: 2016-03-31

Software Version: Tmax v5.0 SP2 Fix #1

Document Version: v2.1.5.1


Table of Contents

About This Document
1. Introduction
1.1. Program Flow
1.1.1. TCS
1.1.2. POD
1.1.3. UCS
1.2. UCS and RDP
1.2.1. UCS
1.2.2. RDP
2. UCS Program
2.1. Overview
2.2. UCS Program Component
2.2.1. Server Program
2.2.2. Client Program
2.3. UCS Environment Configuration and Compilation
2.3.1. Environment Configuration
2.3.2. Compilation
3. UCS Functions
3.1. Overview
3.2. Server/Client Functions
3.2.1. tppost
3.2.2. tpsetfd
3.2.3. tpsubscribe
3.2.4. tpunsubscribe
3.3. Server Functions
3.3.1. tpclrfd
3.3.2. tpissetfd
3.3.3. tpregcb
3.3.4. tprelay
3.3.5. tpsavectx
3.3.6. tpschedule
3.3.7. tpsendtocli
3.3.8. tpsvctimeout
3.3.9. tpsvrdone
3.3.10. tpsvrdown
3.3.11. tpunregcb
3.4. Client Functions
3.4.1. tpgetunsol
3.4.2. tpsetunsol
3.4.3. tpsetunsol_flag
4. UCS Usage Example
4.1. Program Abnormal Termination Management
4.2. Asynch Communication Program Using A Socket
4.3. Program Using RQ
4.4. Client vs. Server Programs
4.5. Server vs. Server Program
5. RDP Program
5.1. Overview
5.2. RDP Server Program Component
5.3. RDP Environment Configuration and Compilation
5.3.1. Environment Configuration
5.3.2. Compilation
6. RDP Usage Example
6.1. Client vs. Server Program
Index

List of Figures

[Figure 1.1] TCS Type Server Program
[Figure 1.2] UCS Server Program
[Figure 1.3] RDP Operation Type
[Figure 2.1] UCS Server Program Component