Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Part 2 Developing Applications by APIs> Chapter 11 Developing C Applications> 11.2 How to Use C APIs> 11.2.1 Establishing a Connection

11.2.1.1 Configuring Settings in the API Environment File

This section explains how to establish a connection by making settings in the API environment file.

mark1Sample Code

SHUNHCON ConH;
/* Allocate connection handle */
ShunAllocHandle(NULL, &ConH);

/* Specify the host name and port number in the API environment file to establish the connection */
ShunConnect(ConH, NULL, 0, NULL);

Refer to 2.4 Setting Up Environment Files or Appendix A Execution Parameters in API Environment Files for more information on the API environment file.

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006