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

Part 1 The Basic for Developing Application> Chapter 7 Shunsaku File> 7.2 Methods Used to Access Shunsaku File> 7.2.1 Per-connection Specification

7.2.1.3 Specifying with the C API

In this method, the Shunsaku File name is specified in a parameter of the ShunConnect function.

mark1Syntax

ShunConnect(connection handle, host name, port number, Shunsaku File name);

mark1Arguments

mark2connection handle

Specifies the connection handle to be used when establishing the connection.

mark2host name

Specifies the host name or IP address of the connection destination.

mark2port number

Specifies the port number of the connection destination.

mark2Shunsaku File name

Specifies the Shunsaku File name of the connection destination.

mark1Sample Code

When the host name is "DirSvr1", the port number is "33101" and the Shunsaku File name is "fileA"

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

/* Specify host name, port number and Shunsaku File name and */ 
/* establish the connection */
ShunConnect(ConH, "DirSvr1",33101, "fileA");

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006