NCSA Portfolio

ncsa.net
Class Handler

java.lang.Object
  |
  +--ncsa.net.Handler
Direct Known Subclasses:
MulticastHandler

public abstract class Handler
extends java.lang.Object

Handler is an abstract class for network data transmission

See Also:
MulticastHandler

Constructor Summary
Handler(java.lang.String addr, int port)
          The constructor records the address and port this object is handling.
 
Method Summary
abstract  void begin()
          Implement this method to initialize data transmission
abstract  void end()
          Implement this method to end data transmission
abstract  void transmit(byte[] ibuf, int len)
          Implement this method to send data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler(java.lang.String addr,
               int port)
The constructor records the address and port this object is handling.
Method Detail

begin

public abstract void begin()
Implement this method to initialize data transmission

end

public abstract void end()
Implement this method to end data transmission

transmit

public abstract void transmit(byte[] ibuf,
                              int len)
Implement this method to send data

NCSA Portfolio

NCSA Portfolio, Copyright 1997-1999, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, All Rights Reserved