|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cycling74.net.TcpSender
public class TcpSender
TCP Sender. created on 24-May-2004
Constructor Summary | |
---|---|
TcpSender()
Creates a TcpSender. |
|
TcpSender(java.lang.String address,
int port)
Creates a TcpSender with specified address and port. |
Method Summary | |
---|---|
void |
close()
Should be called when the TcpSender is no longer needed. |
int |
getActivePackets()
Get the number of active packets. |
java.lang.String |
getAddress()
Gets the IP address. |
int |
getPort()
Get the port. |
void |
send(Atom[] a)
Send a list. |
void |
send(float f)
Send a float. |
void |
send(int i)
Send an integer. |
void |
send(java.lang.String msg,
Atom[] a)
Send a message. |
void |
setAddress(java.lang.String address)
Set the IP address. |
void |
setDebugString(java.lang.String debugString)
Sets the debug String. |
void |
setFailureCallback(java.lang.Object toCallIn,
java.lang.String methodName)
Sets the failure callback. |
void |
setPort(int port)
Set the port. |
void |
setSuccessCallback(java.lang.Object toCallIn,
java.lang.String methodName)
Sets the success callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TcpSender(java.lang.String address, int port)
address
- the address to send toport
- the port to send topublic TcpSender()
Method Detail |
---|
public void setSuccessCallback(java.lang.Object toCallIn, java.lang.String methodName)
toCallIn
- the object that contains the methodmethodName
- the name of the methodpublic void setFailureCallback(java.lang.Object toCallIn, java.lang.String methodName)
toCallIn
- the object that contains the methodmethodName
- the name of the methodpublic void setAddress(java.lang.String address)
address
- the IP address to send topublic java.lang.String getAddress()
public void setPort(int port)
port
- the port to send topublic void setDebugString(java.lang.String debugString)
debugString
- the String to be displayed as part of the error message
in the event of a networking error.public int getPort()
public int getActivePackets()
public void send(int i)
i
- the integer to sendpublic void send(float f)
f
- the float to sendpublic void send(java.lang.String msg, Atom[] a)
msg
- the message to senda
- arguments to the messagepublic void send(Atom[] a)
a
- array of Atoms to send.public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |