jPOS 1.6.1 API Documentation

org.jpos.iso
Interface ClientChannel

All Superinterfaces:
ISOChannel, ISOSource
All Known Implementing Classes:
AmexChannel, ASCIIChannel, BASE24Channel, BASE24TCPChannel, BaseChannel, CSChannel, GZIPChannel, HEXChannel, LogChannel, NACChannel, NCCChannel, PADChannel, PostChannel, RawChannel, VAPChannel, X25Channel, XMLChannel

public interface ClientChannel
extends ISOChannel

Tag this channel as a client one (from a Socket point of view) Please note that ISOChannel implementations may choose to implement ClientChannel as well as ServerChannel, being a client does not mean it can not be a server too.

Version:
$Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
Author:
Alejandro P. Revilla
See Also:
ISOChannel, ServerChannel

Field Summary
 
Fields inherited from interface org.jpos.iso.ISOChannel
CONNECT, RX, SIZEOF_CNT, TX
 
Method Summary
 java.lang.String getHost()
           
 int getPort()
           
 void setHost(java.lang.String host, int port)
          initialize an ISOChannel
 
Methods inherited from interface org.jpos.iso.ISOChannel
clone, connect, disconnect, getName, getPackager, isConnected, receive, reconnect, send, setName, setPackager, setUsable
 

Method Detail

setHost

void setHost(java.lang.String host,
             int port)
initialize an ISOChannel

Parameters:
host - server TCP Address
port - server port number

getHost

java.lang.String getHost()
Returns:
hostname (may be null)

getPort

int getPort()
Returns:
port number (may be 0)

jPOS.org