| Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]()
|
| 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 |
In this method, the Shunsaku File name is specified in a parameter of the ShunConnect function.
Syntax
ShunConnect(connection handle, host name, port number, Shunsaku File name); |
Arguments
connection handleSpecifies the connection handle to be used when establishing the connection.
host nameSpecifies the host name or IP address of the connection destination.
port numberSpecifies the port number of the connection destination.
Shunsaku File nameSpecifies the Shunsaku File name of the connection destination.
Sample CodeWhen 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
![]()
|