com.antiaction.mayhem.mail.smtpd
Class RequestConnectionObject

java.lang.Object
  extended by com.antiaction.mayhem.mail.smtpd.RequestConnectionObject

public class RequestConnectionObject
extends java.lang.Object

Request connection object.

Version:
1.00
Author:
Nicholas Clarke

Field Summary
 boolean isSecure
          SSL/TLS socket.
 java.net.InetAddress localIAddr
          Local IAddr.
 java.lang.String localIP
          Local IP.
 int localPort
          Local Port.
 java.net.InetAddress remoteIAddr
          Remote IAddr.
 java.lang.String remoteIP
          Remote IP.
 int remotePort
          Remote Port.
 BufferedSocketInputStream socketIn
          Managed inputstream.
 java.io.InputStream socketInStream
          Raw socket inputstream.
 PrintOutputStream socketOut
          Managed outputstream.
 java.io.OutputStream socketOutStream
          Raw socket outputstream.
 
Constructor Summary
RequestConnectionObject()
           
 
Method Summary
 void close()
           
 boolean open(IToken token)
           
 int readLineBytes(BufferedSocketInputStream socketIn, byte[] arrReadLine)
          Reads a line of input data.
 java.lang.String readLineStr(BufferedSocketInputStream socketIn, byte[] arrReadLine)
          Reads a line of input data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socketInStream

public java.io.InputStream socketInStream
Raw socket inputstream.


socketOutStream

public java.io.OutputStream socketOutStream
Raw socket outputstream.


socketIn

public BufferedSocketInputStream socketIn
Managed inputstream.


socketOut

public PrintOutputStream socketOut
Managed outputstream.


localIAddr

public java.net.InetAddress localIAddr
Local IAddr.


localPort

public int localPort
Local Port.


localIP

public java.lang.String localIP
Local IP.


remoteIAddr

public java.net.InetAddress remoteIAddr
Remote IAddr.


remotePort

public int remotePort
Remote Port.


remoteIP

public java.lang.String remoteIP
Remote IP.


isSecure

public boolean isSecure
SSL/TLS socket.

Constructor Detail

RequestConnectionObject

public RequestConnectionObject()
Method Detail

open

public boolean open(IToken token)

close

public void close()

readLineStr

public java.lang.String readLineStr(BufferedSocketInputStream socketIn,
                                    byte[] arrReadLine)
Reads a line of input data.

Parameters:
connection - connection object, including input stream.
Returns:
line

readLineBytes

public int readLineBytes(BufferedSocketInputStream socketIn,
                         byte[] arrReadLine)
Reads a line of input data.

Parameters:
connection - connection object, including input stream.
Returns:
line


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.