netP5
Class TcpServer
java.lang.Object
netP5.AbstractTcpServer
netP5.TcpServer
- All Implemented Interfaces:
- java.lang.Runnable, TcpPacketListener
public class TcpServer
- extends AbstractTcpServer
- Author:
- andreas schlegel
Methods inherited from class netP5.AbstractTcpServer |
ban, dispose, getClient, getClients, process, remove, run, send, send, size, socket, unBan |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TcpServer
public TcpServer(int thePort)
- Parameters:
thePort
- int
TcpServer
public TcpServer(java.lang.Object theObject,
int thePort)
- Parameters:
theObject
- ObjectthePort
- int
TcpServer
public TcpServer(java.lang.Object theObject,
int thePort,
int theMode)
- Parameters:
theObject
- ObjectthePort
- inttheMode
- int
TcpServer
public TcpServer(int thePort,
int theMode)
- Parameters:
thePort
- inttheMode
- int
TcpServer
public TcpServer(TcpPacketListener theTcpPacketListener,
int thePort,
int theMode)
- Parameters:
theTcpPacketListener
- TcpPacketListenerthePort
- inttheMode
- int
handleInput
public void handleInput(TcpPacket thePacket,
int thePort)
- Specified by:
handleInput
in class AbstractTcpServer
- Parameters:
thePacket
- TcpPacketthePort
- int
status
public void status(int theIndex)
- Parameters:
theIndex
- int
addListener
public void addListener(NetListener theListener)
removeListener
public void removeListener(NetListener theListener)
getListener
public NetListener getListener(int theIndex)
getListeners
public java.util.Vector getListeners()
processing library oscP5 by Andreas Schlegel. (c) 2010