|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectasyncudp.ASyncUDPParams
public class ASyncUDPParams
A class containing all parameters used by an ASyncUDP instance.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_SEGMENT_SIZE
|
static int |
DEFAULT_RECV_BUFFER_SIZE
|
| Method Summary | |
|---|---|
boolean |
copyParams(ASyncUDPParams audpp)
Sets all parameter values to those contained in audpp. |
ASyncUDP |
getASyncUDP()
Returns the ASyncUDP instance that these parameters configure. |
int |
getMaximumSegmentSize()
Returns the maximum size, in bytes, of any UDP datagram that can be sent. |
int |
getRecvBufferSize()
Returns the size, in bytes, of the application-level receive buffer for the ASyncUDP instance. |
boolean |
setMaximumSegmentSize(int _size)
Sets the maximum size, in bytes, of any UDP datagram that can be sent. |
boolean |
setRecvBufferSize(int _size)
Sets the size, in bytes, of the application-level receive buffer for the ASyncUDP instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_SEGMENT_SIZE
public static final int DEFAULT_RECV_BUFFER_SIZE
| Method Detail |
|---|
public ASyncUDP getASyncUDP()
public boolean copyParams(ASyncUDPParams audpp)
audpp.
Note that this method may fail if the associated ASyncUDP instance is
already in use.
audpp - the ASyncUDPParams object whose parmaeters should be used
true if the parameters are copied successfully,
false otherwisepublic int getMaximumSegmentSize()
public boolean setMaximumSegmentSize(int _size)
_size - the maximum segment 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 | ||||||||