Java Doc for NonblockingMulticastSocket.java in  » Web-Server » Rimfaxe-Web-Server » seda » nbio » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Rimfaxe Web Server » seda.nbio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.net.DatagramSocket
      seda.nbio.NonblockingDatagramSocket
         seda.nbio.NonblockingMulticastSocket

NonblockingMulticastSocket
public class NonblockingMulticastSocket extends NonblockingDatagramSocket (Code)
NonblockingMulticastSocket provides non-blocking multicast datagram I/O. NOTE: packets cannot be received on a socket once connect() is called, due to the semantics of connect() for multicast sockets. Instead, applications should generally use joinGroup(), and then explicitly specify the group address as the destination in all the outbound packets.


Field Summary
 InetAddressmulticast_interface
    
 intmulticast_ttl
    

Constructor Summary
public  NonblockingMulticastSocket()
     Create a NonblockingMulticastSocket bound to any available port.
public  NonblockingMulticastSocket(int port)
    
public  NonblockingMulticastSocket(int port, InetAddress laddr)
     Create a NonblockingMulticastSocket bound to the given port and the given local address.

Method Summary
public  InetAddressgetInterface()
    
public  intgetTimeToLive()
    
public  voidjoinGroup(InetAddress addr)
    
public  voidleaveGroup(InetAddress addr)
    
public  voidseeLocalMessages(boolean state)
     This sets the state of the IP_MULTICAST_LOOP option on the underlying socket.
public  voidsetInterface(InetAddress addr)
    
public  voidsetTimeToLive(int ttl)
    

Field Detail
multicast_interface
InetAddress multicast_interface(Code)



multicast_ttl
int multicast_ttl(Code)




Constructor Detail
NonblockingMulticastSocket
public NonblockingMulticastSocket() throws IOException(Code)
Create a NonblockingMulticastSocket bound to any available port.



NonblockingMulticastSocket
public NonblockingMulticastSocket(int port) throws IOException(Code)



NonblockingMulticastSocket
public NonblockingMulticastSocket(int port, InetAddress laddr) throws IOException(Code)
Create a NonblockingMulticastSocket bound to the given port and the given local address.




Method Detail
getInterface
public InetAddress getInterface()(Code)
Get the interface associated with this multicast socket



getTimeToLive
public int getTimeToLive() throws IOException(Code)
get the multicast ttl



joinGroup
public void joinGroup(InetAddress addr) throws IOException(Code)
Join a multicast group



leaveGroup
public void leaveGroup(InetAddress addr) throws IOException(Code)
Leave a multicast group



seeLocalMessages
public void seeLocalMessages(boolean state) throws IOException(Code)
This sets the state of the IP_MULTICAST_LOOP option on the underlying socket. If state==true, the socket will receive packets it sends out. If false, it will not.

NOTE: The behavior of this is somewhat strange for two multicast listeners on the same physical machine. Ideally, this should be an incoming filter - each socket should throw out packets that it sent out, and not deliver them to the application.

Unfortunately, this instead seems to be an outbound filter - all packets sent out on a socket with IP_MULTICAST_LOOP turned off will be invisible to all sockets on the local machine - regardless of whether or not these other sockets have specified IP_MULTICAST_LOOP=false.




setInterface
public void setInterface(InetAddress addr) throws IOException(Code)
Set the interface associated with this socket



setTimeToLive
public void setTimeToLive(int ttl) throws IOException(Code)
set the time to live



Fields inherited from seda.nbio.NonblockingDatagramSocket
NonblockingSocketImpl impl(Code)(Java Doc)
boolean is_connected(Code)(Java Doc)

Methods inherited from seda.nbio.NonblockingDatagramSocket
public synchronized void close()(Code)(Java Doc)
public void connect(InetAddress address, int port) throws IllegalArgumentException(Code)(Java Doc)
public void connect(String host, int port) throws UnknownHostException(Code)(Java Doc)
public synchronized void disconnect()(Code)(Java Doc)
public InetAddress getInetAddress()(Code)(Java Doc)
public InetAddress getLocalAddress()(Code)(Java Doc)
public int getLocalPort()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public int getReceiveBufferSize() throws SocketException(Code)(Java Doc)
public int getSendBufferSize() throws SocketException(Code)(Java Doc)
public int nbReceive(DatagramPacket p) throws IOException(Code)(Java Doc)
public int nbReceive(byte[] data, int offset, int length) throws IOException(Code)(Java Doc)
public int nbSend(DatagramPacket p) throws IOException(Code)(Java Doc)
public int nbSend(byte[] data, int offset, int length, InetAddress addr, int port) throws IOException(Code)(Java Doc)
public int nbSend(byte[] data, int offset, int length) throws IOException(Code)(Java Doc)
public void receive(DatagramPacket p) throws IOException(Code)(Java Doc)
public void send(DatagramPacket p) throws IOException(Code)(Java Doc)
public void setReceiveBufferSize(int size) throws SocketException(Code)(Java Doc)
public void setSendBufferSize(int size) throws SocketException(Code)(Java Doc)

Methods inherited from java.net.DatagramSocket
public synchronized void bind(SocketAddress addr) throws SocketException(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void connect(InetAddress address, int port)(Code)(Java Doc)
public void connect(SocketAddress addr) throws SocketException(Code)(Java Doc)
public void disconnect()(Code)(Java Doc)
public synchronized boolean getBroadcast() throws SocketException(Code)(Java Doc)
public DatagramChannel getChannel()(Code)(Java Doc)
public InetAddress getInetAddress()(Code)(Java Doc)
public InetAddress getLocalAddress()(Code)(Java Doc)
public int getLocalPort()(Code)(Java Doc)
public SocketAddress getLocalSocketAddress()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public synchronized int getReceiveBufferSize() throws SocketException(Code)(Java Doc)
public SocketAddress getRemoteSocketAddress()(Code)(Java Doc)
public synchronized boolean getReuseAddress() throws SocketException(Code)(Java Doc)
public synchronized int getSendBufferSize() throws SocketException(Code)(Java Doc)
public synchronized int getSoTimeout() throws SocketException(Code)(Java Doc)
public synchronized int getTrafficClass() throws SocketException(Code)(Java Doc)
public boolean isBound()(Code)(Java Doc)
public boolean isClosed()(Code)(Java Doc)
public boolean isConnected()(Code)(Java Doc)
public synchronized void receive(DatagramPacket p) throws IOException(Code)(Java Doc)
public void send(DatagramPacket p) throws IOException(Code)(Java Doc)
public synchronized void setBroadcast(boolean on) throws SocketException(Code)(Java Doc)
public static synchronized void setDatagramSocketImplFactory(DatagramSocketImplFactory fac) throws IOException(Code)(Java Doc)
public synchronized void setReceiveBufferSize(int size) throws SocketException(Code)(Java Doc)
public synchronized void setReuseAddress(boolean on) throws SocketException(Code)(Java Doc)
public synchronized void setSendBufferSize(int size) throws SocketException(Code)(Java Doc)
public synchronized void setSoTimeout(int timeout) throws SocketException(Code)(Java Doc)
public synchronized void setTrafficClass(int tc) throws SocketException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.