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