コード例 #1
0
ファイル: Routing.java プロジェクト: manoj-g-nair/j-sim
 /**
  * Removes all route entries associated with a multicast group via {@link #rtconfigPort}.
  *
  * @param destination the multicast group address.
  * @see drcl.inet.contract.RTConfig
  */
 public Object removeRTEntry(long destination) {
   return RTConfig.remove(
       new RTKey(-1, 0, destination, -1, -1, 0), RTConfig.MATCH_WILDCARD, rtconfigPort);
 }
コード例 #2
0
ファイル: Routing.java プロジェクト: manoj-g-nair/j-sim
 /**
  * Retrieves all the route entries via {@link #rtconfigPort}.
  *
  * @see drcl.inet.contract.RTConfig
  */
 public RTEntry[] removeAllRTEntries() {
   Object result_ =
       RTConfig.remove(new RTKey(0, 0, 0, 0, 0, 0), RTConfig.MATCH_WILDCARD, rtconfigPort);
   if (result_ instanceof RTEntry) return new RTEntry[] {(RTEntry) result_};
   else return (RTEntry[]) result_;
 }
コード例 #3
0
ファイル: Routing.java プロジェクト: manoj-g-nair/j-sim
 /**
  * Removes a route entry via {@link #rtconfigPort}.
  *
  * @param type see {@link drcl.inet.contract.RTConfig}.
  */
 public Object removeRTEntry(RTKey key_, String type) {
   return RTConfig.remove(key_, type, rtconfigPort);
 }