com.antiaction.mayhem.core
Interface IBinder

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
BindDatagramSocket, BindSocket

public interface IBinder
extends java.lang.Runnable

Generic Interface/Port SocketBinder Interface.

Version:
1.00
Author:
Nicholas Clarke

Method Summary
 java.lang.String getHost()
          Get the binders interface host/ip.
 int getPort()
          Get the binders interface port.
 void setBindDatagramSocketFactory(IBindDatagramSocketFactory _factory)
          Factory used to get a ServerDatagramSocket.
 void setBindSocketFactory(IBindSocketFactory _factory)
          Factory used to get a ServerSocket.
 void setBroker(IObjectBroker _broker)
          Set the broker for storing tokens.
 void setHost(java.lang.String _host)
          Set the binders interface host/ip.
 void setPort(int _port)
          Set the binders interface port.
 void shutdown()
          Shutdown binder.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setHost

void setHost(java.lang.String _host)
Set the binders interface host/ip.

Parameters:
_host - valid host/ip.

getHost

java.lang.String getHost()
Get the binders interface host/ip.

Returns:
host/ip.

setPort

void setPort(int _port)
Set the binders interface port.

Parameters:
_port - tcp port.

getPort

int getPort()
Get the binders interface port.

Returns:
tcp port.

setBindDatagramSocketFactory

void setBindDatagramSocketFactory(IBindDatagramSocketFactory _factory)
Factory used to get a ServerDatagramSocket.

Parameters:
_factory - ServerDatagramSocket Factory.

setBindSocketFactory

void setBindSocketFactory(IBindSocketFactory _factory)
Factory used to get a ServerSocket.

Parameters:
_factory - ServerSocket Factory.

setBroker

void setBroker(IObjectBroker _broker)
Set the broker for storing tokens.

Parameters:
_broker - connection broker.

shutdown

void shutdown()
Shutdown binder.



Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.