Package test

Source Code of test.FileTransferTcpServer

package test;

import java.net.URISyntaxException;
import com.firefly.net.Server;
import com.firefly.net.tcp.TcpServer;

public class FileTransferTcpServer {

    public static void main(String[] args) throws URISyntaxException {
//    System.out.println(SendFileHandler.class.getResource("/testFile.txt").toURI());
        Server server = new TcpServer(new StringLineDecoder(),
                new StringLineEncoder(), new SendFileHandler());
        server.start("10.147.22.162", 9900);
//        server.shutdown();
    }

}
TOP

Related Classes of test.FileTransferTcpServer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.