|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.netipc.TWGDatagramSocket
Field Summary | |
---|---|
protected int |
data_ack_timeout
|
protected static int |
DATA_ACK_TIMEOUT
|
protected int |
data_recv_timeout
|
protected static int |
DATA_RECV_TIMEOUT
|
protected int |
default_window_size
|
protected static int |
DEFAULT_WINDOW_SIZE
|
protected static int |
ENCRYPTION_OVERHEAD
|
protected boolean |
is_reliable
|
protected static boolean |
IS_RELIABLE
|
protected int |
max_data_retries
|
protected static int |
MAX_DATA_RETRIES
|
protected int |
max_datagram_size
|
protected static int |
MAX_DATAGRAM_SIZE
|
protected int |
max_recv_ack_retries
|
protected static int |
MAX_RECV_ACK_RETRIES
|
protected int |
max_send_ack_retries
|
protected static int |
MAX_SEND_ACK_RETRIES
|
protected int |
max_send_init_retries
|
protected static int |
MAX_SEND_INIT_RETRIES
|
protected int |
max_xfer_wait_time
|
protected static int |
MAX_XFER_WAIT_TIME
|
protected java.lang.String |
protocol_name
|
protected int |
recv_ack_timeout
|
protected static int |
RECV_ACK_TIMEOUT
|
protected int |
send_done_timeout
|
protected static int |
SEND_DONE_TIMEOUT
|
protected int |
send_init_timeout
|
protected static int |
SEND_INIT_TIMEOUT
|
protected int |
simple_send_timeout
|
protected static int |
SIMPLE_SEND_TIMEOUT
|
Constructor Summary | |
---|---|
TWGDatagramSocket()
Default constructor |
Method Summary | |
---|---|
abstract void |
BroadcastDatagram(byte[] b,
int len)
Broadcast datagram over socket |
void |
BroadcastDatagramOnDiscardPort(byte[] b,
int len)
Broadcast datagram to discard port over socket (new in v3.10) |
abstract void |
Close()
Terminate this datagram socket provider |
int |
GetDataAckTimeout()
Get data ack timeout |
int |
GetDataRecvTimeout()
Get data receive timeout |
int |
GetDefaultWindowSize()
Get default window size |
abstract java.lang.String |
GetDriverName()
Get descriptive name for this datagram transport provider (e.g., "UDP") |
int |
GetMaxDatagramSize()
Get maximum datagram size supported (receive) |
int |
GetMaxDataRetries()
Get maximum data retries |
int |
GetMaxRecvAckRetries()
Get maximum receive ack retries |
int |
GetMaxSendAckRetries()
Get maximum send ack retries |
int |
GetMaxSendDatagramSize()
Get maximum datagram size supported (send) |
int |
GetMaxSendInitRetries()
Get maximum send init retries |
int |
GetMaxXferWaitTime()
Get maximum transfer wait time |
abstract TWGNetAddress |
GetNetAddress(java.lang.String address_name)
Get network transport address for name |
java.lang.String |
getProtocolName()
Get protocol name used in IPC paths |
int |
GetRecvAckTimeout()
Get receive ack timeout |
int |
GetSendDoneTimeout()
Get send done timeout |
int |
GetSendInitTimeout()
Get send init timeout |
int |
GetSimpleSendTimeout()
Get simple send timeout |
boolean |
IsReliable()
Get whether provider is reliable (or requires acked transfers) |
abstract java.lang.String |
NormalizeAddressName(java.lang.String name)
Normalize address name (e.g., resolve TCP/IP host name to dotted decimal string) |
abstract TWGReceivedDatagram |
ReceiveDatagram()
Receive datagram from socket - must be blocking |
abstract void |
SendDatagram(TWGNetAddress target_addr,
byte[] b,
int len)
Send datagram over socket - must be non-blocking |
abstract void |
SendDatagram(TWGNetAddress target_addr,
byte[] b,
int off,
int len)
Send datagram over socket - must be non-blocking |
void |
Start(java.lang.String protocol_name,
java.lang.String init_string)
Initialize this datagram socket provider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int MAX_DATAGRAM_SIZE
protected static final int ENCRYPTION_OVERHEAD
protected static final int DEFAULT_WINDOW_SIZE
protected static final int MAX_DATA_RETRIES
protected static final int MAX_SEND_ACK_RETRIES
protected static final int MAX_RECV_ACK_RETRIES
protected static final int MAX_SEND_INIT_RETRIES
protected static final int SEND_INIT_TIMEOUT
protected static final int SIMPLE_SEND_TIMEOUT
protected static final int DATA_ACK_TIMEOUT
protected static final int DATA_RECV_TIMEOUT
protected static final int RECV_ACK_TIMEOUT
protected static final int SEND_DONE_TIMEOUT
protected static final int MAX_XFER_WAIT_TIME
protected static final boolean IS_RELIABLE
protected int max_datagram_size
protected int default_window_size
protected int max_data_retries
protected int max_send_ack_retries
protected int max_recv_ack_retries
protected int max_send_init_retries
protected int send_init_timeout
protected int simple_send_timeout
protected int data_ack_timeout
protected int data_recv_timeout
protected int recv_ack_timeout
protected int send_done_timeout
protected int max_xfer_wait_time
protected boolean is_reliable
protected java.lang.String protocol_name
Constructor Detail |
public TWGDatagramSocket()
Method Detail |
public void Start(java.lang.String protocol_name, java.lang.String init_string) throws java.net.SocketException, TWGIPCTransportException
protocol_name
- unique name used in IPC paths (e.g., "TCPIP")init_string
- initialization string to specify protocol-specific parameters
java.net.SocketException
TWGIPCTransportException
public java.lang.String getProtocolName()
public abstract void SendDatagram(TWGNetAddress target_addr, byte[] b, int off, int len) throws java.io.IOException
target_addr
- - target addressb
- - source bufferoff
- - index of first byte to write from bufferlen
- - number of bytes to write from buffer
java.io.IOException
- - if error during write operationTWGNetAddress
public abstract void SendDatagram(TWGNetAddress target_addr, byte[] b, int len) throws java.io.IOException
target_addr
- - target addressb
- - source bufferlen
- - number of bytes to write from buffer
java.io.IOException
- - if error during write operationTWGNetAddress
public abstract void BroadcastDatagram(byte[] b, int len) throws java.io.IOException
b
- - source bufferlen
- - number of bytes to write from buffer
java.io.IOException
- - if error during write operationpublic void BroadcastDatagramOnDiscardPort(byte[] b, int len) throws java.io.IOException
b
- - source bufferlen
- - number of bytes to write from buffer
java.io.IOException
- - if error during write operationpublic abstract TWGReceivedDatagram ReceiveDatagram() throws java.io.IOException
java.io.IOException
- - if error during read operationTWGReceivedDatagram
public abstract void Close() throws java.io.IOException
java.io.IOException
- - if error during terminationpublic abstract java.lang.String GetDriverName()
public abstract TWGNetAddress GetNetAddress(java.lang.String address_name) throws TWGNetAddressException
address_name
- normalized address name
TWGNetAddressException
- if failed to resolve name to addresspublic abstract java.lang.String NormalizeAddressName(java.lang.String name) throws TWGNetAddressException
name
- address name to normalize
TWGNetAddressException
- if failed to normalize namepublic int GetMaxDatagramSize()
public int GetMaxSendDatagramSize()
public int GetDefaultWindowSize()
public int GetMaxDataRetries()
public int GetMaxSendAckRetries()
public int GetMaxRecvAckRetries()
public int GetMaxSendInitRetries()
public int GetSendInitTimeout()
public int GetSimpleSendTimeout()
public int GetDataAckTimeout()
public int GetDataRecvTimeout()
public int GetRecvAckTimeout()
public int GetSendDoneTimeout()
public int GetMaxXferWaitTime()
public boolean IsReliable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |