|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface BaseUdpProtocol
UDPプロトコルインターフェイス.
UDPプロトコルで処理するインターフェイスです.
フィールドの概要 | |
---|---|
static int |
ALL_MODE
バッファモード設定 : 両方バッファ設定. |
static int |
BUF_LENGTH
受信バッファ長. |
static int |
NOT_MODE
バッファモード設定 : デフォルト値設定. |
static int |
RCV_MODE
バッファモード設定 : 受信側のみバッファ設定. |
static int |
SND_MODE
バッファモード設定 : 送信側のみバッファ設定. |
メソッドの概要 | |
---|---|
void |
close()
クローズ処理. |
int |
getBuffer()
設定バッファ長を取得. |
ConnectAddress |
getLocal()
ローカルアドレスを取得. |
void |
getLocal(ConnectAddress addr)
ローカルアドレスを取得. |
java.net.InetAddress |
getLocalAddress()
ローカルアドレス情報を取得. |
int |
getLocalPort()
ローカルポート番号を取得. |
boolean |
isOpen()
オープンチェック. |
void |
open(int bufLen)
オープン処理. |
void |
open(int bufLen,
int port)
オープン処理. |
void |
open(int bufLen,
int port,
java.net.InetAddress addr)
オープン処理. |
void |
openTo(int bufMode,
int bufLen)
オープン処理. |
void |
openTo(int bufMode,
int bufLen,
int port)
オープン処理. |
void |
openTo(int bufMode,
int bufLen,
int port,
java.net.InetAddress addr)
オープン処理. |
int |
receive(byte[] out,
ConnectAddress addr)
データ受信. |
int |
receive(byte[] out,
ConnectAddress addr,
int timeout)
データ受信. |
byte[] |
receive(ConnectAddress addr)
データ受信. |
byte[] |
receive(ConnectAddress addr,
int timeout)
データ受信. |
void |
send(byte[] binary,
ConnectAddress addr)
データ送信. |
void |
send(byte[] binary,
java.net.InetAddress addr,
int port)
データ送信. |
フィールドの詳細 |
---|
static final int BUF_LENGTH
static final int NOT_MODE
static final int SND_MODE
static final int RCV_MODE
static final int ALL_MODE
メソッドの詳細 |
---|
void open(int bufLen) throws NotBindException
bufLen
- 送受信バッファ長を設定します.
NotBindException
- バインド失敗.void open(int bufLen, int port) throws InputException, NotBindException
bufLen
- 送受信バッファ長を設定します.port
- オープン対象のポート番号を設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void open(int bufLen, int port, java.net.InetAddress addr) throws InputException, NotBindException
bufLen
- 送受信バッファ長を設定します.port
- オープン対象のポート番号を設定します.addr
- オープン対象の自IPアドレスを設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void openTo(int bufMode, int bufLen) throws NotBindException
bufMode
- バッファモードを設定します.bufLen
- 送受信バッファ長を設定します.
NotBindException
- バインド失敗.void openTo(int bufMode, int bufLen, int port) throws InputException, NotBindException
bufMode
- バッファモードを設定します.bufLen
- 送受信バッファ長を設定します.port
- オープン対象のポート番号を設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void openTo(int bufMode, int bufLen, int port, java.net.InetAddress addr) throws InputException, NotBindException
bufMode
- バッファモードを設定します.bufLen
- 送受信バッファ長を設定します.port
- オープン対象のポート番号を設定します.addr
- オープン対象の自IPアドレスを設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void close()
void send(byte[] binary, ConnectAddress addr) throws InputException, UndefineBindException
binary
- 送信対象のデータを設定します.addr
- 送信対象のIPアドレス/ポート番号を指定します.
InputException
- 入力例外.
UndefineBindException
- 未バインド例外.void send(byte[] binary, java.net.InetAddress addr, int port) throws InputException, UndefineBindException
binary
- 送信対象のデータを設定します.addr
- 送信対象のIPアドレスを指定します.port
- 送信対象のポート番号を設定します.
InputException
- 入力例外.
UndefineBindException
- 未バインド例外.byte[] receive(ConnectAddress addr) throws UndefineBindException, ConnectTimeoutException
addr
- 受信先のIPアドレスとポート番号が格納された
内容が返されます.
UndefineBindException
- バインド未定義例外.
ConnectTimeoutException
- タイムアウト例外.byte[] receive(ConnectAddress addr, int timeout) throws UndefineBindException, ConnectTimeoutException
addr
- 受信先のIPアドレスとポート番号が格納された
内容が返されます.timeout
- 受信タイムアウト値を設定します.
UndefineBindException
- バインド未定義例外.
ConnectTimeoutException
- タイムアウト例外.int receive(byte[] out, ConnectAddress addr) throws InputException, UndefineBindException, ConnectTimeoutException
out
- 受信されたバイナリ情報が設定されます.addr
- 受信先のIPアドレスとポート番号が格納された
内容が返されます.
InputException
- 入力例外
UndefineBindException
- バインド未定義例外.
ConnectTimeoutException
- タイムアウト例外.int receive(byte[] out, ConnectAddress addr, int timeout) throws InputException, UndefineBindException, ConnectTimeoutException
out
- 受信されたバイナリ情報が設定されます.addr
- 受信先のIPアドレスとポート番号が格納された
内容が返されます.timeout
- 受信タイムアウト値を設定します.
InputException
- 入力例外
UndefineBindException
- バインド未定義例外.
ConnectTimeoutException
- タイムアウト例外.void getLocal(ConnectAddress addr)
addr
- 対象のローカルアドレスが返されます.ConnectAddress getLocal()
java.net.InetAddress getLocalAddress()
int getLocalPort()
int getBuffer()
boolean isOpen()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |