|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface BaseMultiCast
マルチキャストインターフェイス.
マルチキャストUDPプロトコルインターフェイスです.
フィールドの概要 | |
---|---|
static int |
BUFFER
受信バッファ長. |
static int |
DEF_BUFFER
受信デフォルトバッファ長. |
static int |
DEF_PORT
デフォルトポート番号. |
static byte |
DEF_TTL
デフォルトTTL(TimeToLive). |
メソッドの概要 | |
---|---|
void |
close()
クローズ処理. |
int |
getBuffer()
設定バッファ長を取得. |
java.net.InetAddress |
getInterface()
利用インターフェイスを取得. |
ConnectAddress |
getLocal()
ローカルアドレスを取得. |
void |
getLocal(ConnectAddress addr)
ローカルアドレスを取得. |
java.net.InetAddress |
getLocalAddress()
ローカルアドレス情報を取得. |
int |
getLocalPort()
ローカルポート番号を取得. |
int |
getTTL()
設定されている有効期限を取得. |
boolean |
isGroup()
グループ参加チェック. |
boolean |
isOpen()
オープンチェック. |
void |
leaveGroup()
現在参加しているグループから離脱. |
void |
open()
オープン処理. |
void |
open(int buf)
オープン処理. |
void |
open(int port,
int buf)
オープン処理. |
void |
open(int port,
int buf,
byte defTTL)
オープン処理. |
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)
データ送信. |
void |
send(byte[] binary,
byte ttl)
データ送信. |
void |
setInterface(java.net.InetAddress inf)
利用インターフェイスを設定. |
void |
setTTL(int ttl)
有効期限を設定. |
フィールドの詳細 |
---|
static final int BUFFER
static final int DEF_BUFFER
static final int DEF_PORT
static final byte DEF_TTL
メソッドの詳細 |
---|
void open() throws NotBindException
NotBindException
- バインド失敗.void open(int buf) throws InputException, NotBindException
buf
- 送受信バッファ長を設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void open(int port, int buf) throws InputException, NotBindException
port
- オープンポート番号を設定します.buf
- 送受信バッファ長を設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void open(int port, int buf, byte defTTL) throws InputException, NotBindException
port
- オープンポート番号を設定します.buf
- 送受信バッファ長を設定します.defTTL
- デフォルトのTTL(TimeToLive)を設定します.
InputException
- 入力例外.
NotBindException
- バインド失敗.void close()
void setInterface(java.net.InetAddress inf) throws InputException, NotInterfaceException
inf
- 対象のインターフェイス先を設定します.
InputException
- 入力例外.
NotInterfaceException
- インターフェイス非存在例外.void leaveGroup()
void send(byte[] binary) throws InputException, UndefineBindException
binary
- 送信対象のデータを設定します.
InputException
- 入力例外.
UndefineBindException
- 未バインド例外.void send(byte[] binary, byte ttl) throws InputException, UndefineBindException
binary
- 送信対象のデータを設定します.ttl
- マルチキャストパケット有効期間を設定します.
InputException
- 入力例外.
UndefineBindException
- 未バインド例外.byte[] receive(ConnectAddress addr) throws InputException, UndefineBindException, ConnectTimeoutException
addr
- 受信先のIPアドレスとポート番号が格納された
内容が返されます.
InputException
- 入力例外
UndefineBindException
- バインド未定義例外.
ConnectTimeoutException
- タイムアウト例外.byte[] receive(ConnectAddress addr, int timeout) throws InputException, UndefineBindException, ConnectTimeoutException
addr
- 受信先のIPアドレスとポート番号が格納された
内容が返されます.timeout
- 受信タイムアウト値を設定します.
InputException
- 入力例外
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 setTTL(int ttl) throws InputException
InputException
- 入力例外.java.net.InetAddress getInterface()
void getLocal(ConnectAddress addr)
addr
- 対象のローカルアドレスが返されます.ConnectAddress getLocal()
java.net.InetAddress getLocalAddress()
int getLocalPort()
int getBuffer()
int getTTL()
boolean isGroup()
boolean isOpen()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |