パッケージ org.piax.gtrans.tsd
クラス MulticastTSD<T>
java.lang.Object
org.piax.gtrans.tsd.TSD<T>
org.piax.gtrans.tsd.MulticastTSD<T>
- すべての実装されたインタフェース:
Runnable
public class MulticastTSD<T> extends TSD<T> implements Runnable
UDPのMulticastを使ったTSDの実装。
TODO 交換する ServiceInfoについてはJavaのserializeを使っているが、JSONに切り替えた方がよい。
正確なことを書くと、TSDを型指定しているが、実際にはシングルトンで起動させるので、アプリにとって、 型Tの情報を扱うように見えても、様々な型をハンドリングしていることになる。
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected InetAddressgroupprotected booleanisTerminatedstatic StringPSDP_GROUPstatic intPSDP_PORTprotected MulticastSocketsocket -
メソッドの概要
クラスから継承されたメソッド org.piax.gtrans.tsd.TSD
advertiseAll, cancelDiscovery, checkDiscarding, found, getDiscoveryListener, registerService, scheduleDiscovery, setDiscoveryListener, unregisterAllServices, unregisterService
-
フィールド詳細
-
PSDP_PORT
public static int PSDP_PORT -
PSDP_GROUP
-
socket
-
group
-
isTerminated
protected boolean isTerminated
-
-
メソッドの詳細