netP5
Class TcpClient

java.lang.Object
  extended by netP5.AbstractTcpClient
      extended by netP5.TcpClient
All Implemented Interfaces:
Runnable

public class TcpClient
extends AbstractTcpClient

Author:
andreas schlegel

Field Summary
 
Fields inherited from class netP5.AbstractTcpClient
MODE_NEWLINE, MODE_READLINE, MODE_STREAM, MODE_TERMINATED
 
Constructor Summary
TcpClient(AbstractTcpServer theTcpServer, Socket theSocket, TcpPacketListener theTcpPacketListener, int theServerPort, int theMode)
           
TcpClient(NetAddress theNetAddress)
           
TcpClient(Object theObject, NetAddress theNetAddress)
           
TcpClient(Object theObject, String theAddress, int thePort)
           
TcpClient(Object theObject, String theAddress, int thePort, int theMode)
           
TcpClient(String theAddress, int thePort)
           
TcpClient(TcpPacketListener theListener, String theServerAddress, int theServerPort, int theMode)
           
 
Method Summary
 void handleInput()
           
 void handleStatus(int theIndex)
           
 String name()
           
 void setName(String theName)
           
 
Methods inherited from class netP5.AbstractTcpClient
dispose, equals, equals, getString, getStringBuffer, listener, mode, netaddress, netAddress, reconnect, run, send, send, send, serverport, setTerminator, socket
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpClient

public TcpClient(Object theObject,
                 String theAddress,
                 int thePort)
Parameters:
theAddress - String
thePort - int

TcpClient

public TcpClient(Object theObject,
                 String theAddress,
                 int thePort,
                 int theMode)
Parameters:
theObject - Object
theAddress - String
thePort - int
theMode - int

TcpClient

public TcpClient(TcpPacketListener theListener,
                 String theServerAddress,
                 int theServerPort,
                 int theMode)
Parameters:
theListener - TcpPacketListener
theServerAddress - String
theServerPort - int
theMode - int

TcpClient

public TcpClient(Object theObject,
                 NetAddress theNetAddress)
Parameters:
theNetAddress - NetAddress

TcpClient

public TcpClient(NetAddress theNetAddress)
Parameters:
theNetAddress - NetAddress

TcpClient

public TcpClient(String theAddress,
                 int thePort)
Parameters:
theAddress - String
thePort - int

TcpClient

public TcpClient(AbstractTcpServer theTcpServer,
                 Socket theSocket,
                 TcpPacketListener theTcpPacketListener,
                 int theServerPort,
                 int theMode)
Method Detail

handleStatus

public void handleStatus(int theIndex)
Specified by:
handleStatus in class AbstractTcpClient
Parameters:
theIndex - int

handleInput

public void handleInput()
Specified by:
handleInput in class AbstractTcpClient

name

public String name()
Returns:
String

setName

public void setName(String theName)
Parameters:
theName - String


processing library oscP5 by Andreas Schlegel. (c) 2004-2012