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.2 Specifying the Host Name and Port Number Directly

This section explains how to specify the host name and port number directly.

mark1Sample Code

When the host name is"DirSvr1"and the port number is "33101"

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

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

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006