All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.vidstige.jadb.server.AdbServer Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
/*
 * Copyright (c) 2010-2019, sikuli.org, sikulix.com - MIT license
 */

package se.vidstige.jadb.server;

import java.net.Socket;

/**
 * Created by vidstige on 2014-03-20
 */
public class AdbServer extends SocketServer {

    public static final int DEFAULT_PORT = 15037;
    private final AdbResponder responder;

    public AdbServer(AdbResponder responder) {
        this(responder, DEFAULT_PORT);
    }

    public AdbServer(AdbResponder responder, int port) {
        super(port);
        this.responder = responder;
    }

    @Override
    protected Runnable createResponder(Socket socket) {
        return new AdbProtocolHandler(socket, responder);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy