SecurePlayLibray J2SE
v2.1

com.SecurePlay.Comms.SPCcommsTCP
Class SPCcommsTCPclient

java.lang.Object
  extended bycom.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
      extended bycom.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
          extended bycom.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCPclient

public class SPCcommsTCPclient
extends SPCcommsTCP

Simple TCP client class. Extends from basic TCP class and overrides and configures the class to be client.

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Field Summary
 
Fields inherited from class com.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
listen, listeners, socketConnections, uniqueAddress
 
Fields inherited from class com.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
commsServer
 
Constructor Summary
SPCcommsTCPclient(int PollTimerMilliSeconds, boolean relay)
          Constructor.
 
Method Summary
 boolean createConnection(java.lang.String address, java.net.Socket s)
          Override.
 java.lang.String getCommsDriverType()
          This method returns the driver type.
 boolean prpoll(java.lang.String address)
          Sends a poll request message to the reciever.
 boolean StartListen(int portIN)
          Override.
 void StopListen()
          Override.
 
Methods inherited from class com.SecurePlay.Comms.SPCcommsTCP.SPCcommsTCP
containsUniqueAddress, createConnection, getAddress, getListenerCount, isListen, isReady, numConnections, prsend, removeConnection, setUniqueAddress, unsetUniqueAddress
 
Methods inherited from class com.SecurePlay.Comms.SPCGenericCommsServer.SPCGenericCommsDriverClass
addAddress, addressSupportsRelay, clearAddresses, containsAddress, getAddressList, getServer, isConfigured, isPush, isRelay, MessArrAddMessArr, removeAddress, sendFromQMessages, sendMessage, SPdeserializeProcessByteArr, SPincoming, SPserialize, SPserialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPCcommsTCPclient

public SPCcommsTCPclient(int PollTimerMilliSeconds,
                         boolean relay)
Constructor.

Parameters:
PollTimerMilliSeconds - int - poll timer in milliseconds.
relay - boolean - flag to set relay or no relay.
Method Detail

StartListen

public boolean StartListen(int portIN)
Override. This is a client, it does not listen for new connections.

Overrides:
StartListen in class SPCcommsTCP
Parameters:
portIN - int - NOT USED. void

StopListen

public void StopListen()
Override. This is a client, it does not listen for new connections. void

Overrides:
StopListen in class SPCcommsTCP

createConnection

public boolean createConnection(java.lang.String address,
                                java.net.Socket s)
                         throws java.io.IOException
Override. This is a client, it does create connections, it only accepts or adds connections.

Overrides:
createConnection in class SPCcommsTCP
Throws:
java.io.IOException
Parameters:
address - String - NOT USED.
s - Socket - NOT USED.
Returns:
boolean

getCommsDriverType

public java.lang.String getCommsDriverType()
This method returns the driver type. It will be overridden with specific driver type.

Overrides:
getCommsDriverType in class SPCcommsTCP
Returns:
String

prpoll

public boolean prpoll(java.lang.String address)
Sends a poll request message to the reciever.

Overrides:
prpoll in class SPCGenericCommsDriverClass
Parameters:
address - String - address the poll request message will be sent to.
Returns:
boolean

SecurePlayLibray J2SE
v2.1

2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.