Package org.subethamail.smtp.io

Examples of org.subethamail.smtp.io.CRLFTerminatedReader


   */
  public void setSocket(Socket socket) throws IOException
  {
    this.socket = socket;
    this.input = this.socket.getInputStream();
    this.reader = new CRLFTerminatedReader(this.input);
    this.writer = new PrintWriter(this.socket.getOutputStream());

    this.socket.setSoTimeout(this.server.getConnectionTimeout());
  }
View Full Code Here


     * SSL is started.
     */
    public void setSocket(Socket socket) throws IOException {
        this.socket = socket;
        this.input = this.socket.getInputStream();
        this.reader = new CRLFTerminatedReader(this.input);
        this.writer =
                new OutputStreamWriter(this.socket.getOutputStream(),
                        "US-ASCII");

        this.socket.setSoTimeout(TEN_MINUTES);
View Full Code Here

    }
    // OK, let's go trough the authentication process.
    try
    {
      // The authentication process may require a series of challenge-responses
      CRLFTerminatedReader reader = sess.getReader();

      String response = authHandler.auth(commandString);
      if (response != null)
      {
        // challenge-response iteration
        sess.sendResponse(response);
      }

      while (response != null)
      {
        String clientInput = reader.readLine();
        if (clientInput.trim().equals(AUTH_CANCEL_COMMAND))
        {
          // RFC 2554 explicitly states this:
          sess.sendResponse("501 Authentication canceled by client.");
          return;
View Full Code Here

   */
  public void setSocket(Socket socket) throws IOException
  {
    this.socket = socket;
    this.input = this.socket.getInputStream();
    this.reader = new CRLFTerminatedReader(this.input);
    this.writer = new PrintWriter(this.socket.getOutputStream());

    this.socket.setSoTimeout(this.server.getConnectionTimeout());
  }
View Full Code Here

TOP

Related Classes of org.subethamail.smtp.io.CRLFTerminatedReader

Copyright © 2018 www.massapicom. 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.