| Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]()
|
| Part 2 Developing Applications by APIs | > Chapter 9 Developing Java Applications | > 9.3 How to Use Java APIs | > 9.3.1 Establishing a Connection |
This section explains how to establish a connection by specifying the host name and port number directly.
Entry Format
ShunConnection object name = new ShunConnection(host name, port number); |
Arguments
host nameSpecify either the host name or the IP address of the connection destination.
port numberSpecify the port number of the connection destination.
Sample CodeWhen the host name is 'DirSvr1' and the port number is '33101'
ShunConnection con = new ShunConnection("DirSvr1",33101); |
Sample Codes for StudioWhen using Studio, specify code in the business class similar to that shown in the example above.
Contents
Index
![]()
|