|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectasynctcp.ASyncTCPParams
public class ASyncTCPParams
A class containing all parameters used by an ASyncTCP instance.
| Field Summary | |
|---|---|
static int |
DEFAULT_RECV_BUFFER_SIZE
|
static int |
DEFAULT_SEND_BUFFER_SIZE
|
| Method Summary | |
|---|---|
boolean |
copyParams(ASyncTCPParams atcpp)
Sets all parameter values to those contained in atcpp. |
ASyncTCP |
getASyncTCP()
Returns the ASyncTCP instance that these parameters configure. |
int |
getRecvBufferSize()
Returns the size, in bytes, of the application-level receive buffer of an incoming connection. |
int |
getSendBufferSize()
Returns the size, in bytes, of the application-level send buffer of an outgoing connection. |
boolean |
setRecvBufferSize(int _size)
Sets the size, in bytes, of the application-level receive buffer of an incoming connection. |
boolean |
setSendBufferSize(int _size)
Sets the size, in bytes, of the application-level send buffer of an outgoing connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SEND_BUFFER_SIZE
public static final int DEFAULT_RECV_BUFFER_SIZE
| Method Detail |
|---|
public ASyncTCP getASyncTCP()
public boolean copyParams(ASyncTCPParams atcpp)
atcpp.
Note that this method may fail if the associated PonyRide instance is
already in use.
atcpp - the ASyncTCPParams object whose parmaeters should be
used
true if the parameters are copied successfully,
false otherwisepublic int getSendBufferSize()
public boolean setSendBufferSize(int _size)
_size - the send buffer size, in bytes
true if the new send buffer size is set
successfully, false otherwisepublic int getRecvBufferSize()
public boolean setRecvBufferSize(int _size)
_size - the receive buffer size, in bytes
true if the new receive buffer size is set
successfully, false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||