java.lang.Object
org.mtpgsql.server.SimpleServer
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, java.lang.Runnable
- public class SimpleServer
- extends java.lang.Object
- implements java.lang.Runnable, java.awt.event.ActionListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connections
public java.lang.ThreadGroup connections
server_socket
java.net.ServerSocket server_socket
running
boolean running
SimpleServer
public SimpleServer(java.net.ServerSocket server)
main
public static void main(java.lang.String[] args)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
- Description copied from interface:
java.awt.event.ActionListener
- This method is invoked when an action occurs.
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
connect
public void connect()
throws java.io.IOException
init
public static void init()
close
public static void close()
isRunning
public boolean isRunning()
run
public void run()
- Description copied from interface:
java.lang.Runnable
- This method will be called by whoever wishes to run your class
implementing Runnable. Note that there are no restrictions on what
you are allowed to do in the run method, except that you cannot
throw a checked exception.
- Specified by:
run in interface java.lang.Runnable