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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhatTimeIsItServer
public WhatTimeIsItServer()
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()