2008-11-14 16:38:36 +00:00
|
|
|
package zutil.test;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
|
|
|
|
|
|
|
import zutil.Encrypter;
|
2011-02-15 19:37:04 +00:00
|
|
|
import zutil.net.nio.NioServer;
|
2008-11-14 16:38:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("unused")
|
|
|
|
|
public class NetworkServerTest {
|
|
|
|
|
public static void main(String[] args) throws NoSuchAlgorithmException {
|
|
|
|
|
try {
|
|
|
|
|
NioServer server = new NioServer(6056);
|
|
|
|
|
//server.setEncrypter(new Encrypter("lol", Encrypter.PASSPHRASE_DES_ALGO));
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|