27 lines
526 B
Java
27 lines
526 B
Java
package davmail.imap;
|
|
|
|
|
|
import java.net.Socket;
|
|
|
|
import davmail.AbstractServer;
|
|
|
|
/**
|
|
* Pop3 server
|
|
*/
|
|
public class ImapServer extends AbstractServer {
|
|
public static final int DEFAULT_PORT = 143;
|
|
|
|
/**
|
|
* Create a ServerSocket to listen for connections.
|
|
* Start the thread.
|
|
*/
|
|
public ImapServer(int port) {
|
|
super(port, ImapServer.DEFAULT_PORT);
|
|
}
|
|
|
|
public void createConnectionHandler(Socket clientSocket) {
|
|
new ImapConnection(clientSocket);
|
|
}
|
|
|
|
}
|