blob: 14b52392385eb85a4ae07c454d904c8ea3675a20 [file] [log] [blame]
danielp54e997e2013-02-21 01:54:23 +00001package org.frc971;
2
3import java.io.IOException;
4import java.nio.channels.SocketChannel;
5import java.net.InetSocketAddress;
6
7import aos.DebugServer;
8import aos.ChannelImageGetter;
9
10public class DebugServerRun {
11 public static void main(final String args[]) {
12 try {
13 DebugServer server = new DebugServer(9714);
14 System.out.println("Debug Server running on port 9714.");
15 SocketChannel client_sock = SocketChannel.open();
16 client_sock.connect(new InetSocketAddress("192.168.0.137", 9714));
17 ChannelImageGetter client = new ChannelImageGetter(client_sock);
18 client.getJPEG();
19 System.out.println(client.getTimestamp());
20 }
21 catch (IOException e) {
22 System.out.println(e.getMessage());
23 }
24 }
25}