examples.remote
Class WhatTimeIsItServer

java.lang.Object
  |
  +--examples.remote.WhatTimeIsItServer
All Implemented Interfaces:
ClientListener

public class WhatTimeIsItServer
extends java.lang.Object
implements ClientListener

Used in conjunction with the WhatTimeIsItClient to tell the time/date to a remote client. Start up this class first, then the WhatTimeIsItClient on the remote machine. Read the comments in the WhatTimeIsItClient code.


Constructor Summary
WhatTimeIsItServer()
           
 
Method Summary
 void bytesTransferred(ClientEvent evt)
          Called when bytes are about to be transferred to or from a client.
 void clientAdded(ClientEvent evt)
          Issued when a client attaches itself to an AudioSocketSource - the Thread is the thread handling the client request.
 void clientRemoved(ClientEvent evt)
           
static void main(java.lang.String[] args)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhatTimeIsItServer

public WhatTimeIsItServer()
Method Detail

main

public static void main(java.lang.String[] args)

bytesTransferred

public void bytesTransferred(ClientEvent evt)
Description copied from interface: ClientListener
Called when bytes are about to be transferred to or from a client. Allows an opportunity to analyse or process the data before it is transferred.
Specified by:
bytesTransferred in interface ClientListener

clientRemoved

public void clientRemoved(ClientEvent evt)
Specified by:
clientRemoved in interface ClientListener

clientAdded

public void clientAdded(ClientEvent evt)
Description copied from interface: ClientListener
Issued when a client attaches itself to an AudioSocketSource - the Thread is the thread handling the client request.
Specified by:
clientAdded in interface ClientListener

start

public void start()