org.teleal.cling.transport.impl
Class DatagramIOImpl

java.lang.Object
  extended by org.teleal.cling.transport.impl.DatagramIOImpl
All Implemented Interfaces:
java.lang.Runnable, DatagramIO<DatagramIOConfigurationImpl>

public class DatagramIOImpl
extends java.lang.Object
implements DatagramIO<DatagramIOConfigurationImpl>

http://forums.sun.com/thread.jspa?threadID=771852 http://mail.openjdk.java.net/pipermail/net-dev/2008-December/000497.html https://jira.jboss.org/jira/browse/JGRP-978 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4701650


Field Summary
protected  DatagramIOConfigurationImpl configuration
           
protected  DatagramProcessor datagramProcessor
           
protected  java.net.InetSocketAddress localAddress
           
protected  Router router
           
protected  java.net.MulticastSocket socket
           
 
Constructor Summary
DatagramIOImpl(DatagramIOConfigurationImpl configuration)
           
 
Method Summary
 DatagramIOConfigurationImpl getConfiguration()
           
 void init(java.net.InetAddress bindAddress, Router router, DatagramProcessor datagramProcessor)
           
 void run()
           
 void send(java.net.DatagramPacket datagram)
           
 void send(OutgoingDatagramMessage message)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

router

protected Router router

datagramProcessor

protected DatagramProcessor datagramProcessor

configuration

protected DatagramIOConfigurationImpl configuration

localAddress

protected java.net.InetSocketAddress localAddress

socket

protected java.net.MulticastSocket socket
Constructor Detail

DatagramIOImpl

public DatagramIOImpl(DatagramIOConfigurationImpl configuration)
Method Detail

getConfiguration

public DatagramIOConfigurationImpl getConfiguration()
Specified by:
getConfiguration in interface DatagramIO<DatagramIOConfigurationImpl>

init

public void init(java.net.InetAddress bindAddress,
                 Router router,
                 DatagramProcessor datagramProcessor)
          throws InitializationException
Specified by:
init in interface DatagramIO<DatagramIOConfigurationImpl>
Throws:
InitializationException

stop

public void stop()
Specified by:
stop in interface DatagramIO<DatagramIOConfigurationImpl>

run

public void run()
Specified by:
run in interface java.lang.Runnable

send

public void send(OutgoingDatagramMessage message)
Specified by:
send in interface DatagramIO<DatagramIOConfigurationImpl>

send

public void send(java.net.DatagramPacket datagram)
Specified by:
send in interface DatagramIO<DatagramIOConfigurationImpl>


Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.