2006-12-12 18:57:24 -05:00
|
|
|
package davmail.imap;
|
|
|
|
|
|
|
|
|
|
|
|
import java.net.Socket;
|
|
|
|
|
|
|
|
import davmail.AbstractServer;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Pop3 server
|
|
|
|
*/
|
|
|
|
public class ImapServer extends AbstractServer {
|
|
|
|
public final static int DEFAULT_PORT = 143;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a ServerSocket to listen for connections.
|
|
|
|
* Start the thread.
|
|
|
|
*/
|
2006-12-14 10:14:18 -05:00
|
|
|
public ImapServer(int port) {
|
|
|
|
super((port == 0) ? ImapServer.DEFAULT_PORT : port);
|
2006-12-12 18:57:24 -05:00
|
|
|
}
|
|
|
|
|
2006-12-14 10:14:18 -05:00
|
|
|
public void createConnectionHandler(Socket clientSocket) {
|
|
|
|
new ImapConnection(clientSocket);
|
2006-12-12 18:57:24 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|