| | |
| | | import de.uhilger.avdirektor.handler.OMXPlayer; |
| | | import de.uhilger.avdirektor.handler.PingHandler; |
| | | import de.uhilger.avdirektor.handler.PlayHandler; |
| | | import de.uhilger.avdirektor.handler.Player; |
| | | import de.uhilger.avdirektor.handler.SeekHandler; |
| | | import de.uhilger.avdirektor.handler.StopServerHandler; |
| | | import de.uhilger.avdirektor.handler.VLCPlayer; |
| | | import java.io.IOException; |
| | | import java.util.logging.Logger; |
| | | import java.net.InetSocketAddress; |
| | |
| | | |
| | | private static final Logger logger = Logger.getLogger(Server.class.getName()); |
| | | |
| | | |
| | | private int port; |
| | | |
| | | public Server(int port) { |
| | |
| | | //server.setExecutor(null); // creates a default executor |
| | | server.setExecutor(Executors.newFixedThreadPool(20)); |
| | | server.start(); |
| | | } |
| | | } |
| | | |
| | | } |