rabbit.io
Class DefaultBinder

java.lang.Object
  extended by rabbit.io.DefaultBinder
All Implemented Interfaces:
SocketBinder

public class DefaultBinder
extends Object
implements SocketBinder

A binder that only binds to the wildcard address and port.

Author:
Robert Olofsson

Constructor Summary
DefaultBinder()
           
 
Method Summary
 InetAddress getInetAddress()
          Get the inet address to bind to, return null to get the wildcard.
 int getPort()
          Get the port number to bind to, use 0 to let the system pick a port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBinder

public DefaultBinder()
Method Detail

getPort

public int getPort()
Description copied from interface: SocketBinder
Get the port number to bind to, use 0 to let the system pick a port.

Specified by:
getPort in interface SocketBinder

getInetAddress

public InetAddress getInetAddress()
Description copied from interface: SocketBinder
Get the inet address to bind to, return null to get the wildcard.

Specified by:
getInetAddress in interface SocketBinder