public class SmtpReceiver extends Object implements SocketListener
Constructor and Description |
---|
SmtpReceiver(InetSocketAddress address,
SecurityContext secContext,
TransportReceiver lreceiver)
creates a local SMTP server.
|
Modifier and Type | Method and Description |
---|---|
int |
getPort() |
TransportReceiver |
getTransportReceiver() |
void |
gotConnect(ServerConnection ac) |
TransportReceiver |
setTransportReceiver(TransportReceiver lreceiver)
Sets the belnding layer to be used.
|
void |
shutdown() |
public SmtpReceiver(InetSocketAddress address, SecurityContext secContext, TransportReceiver lreceiver) throws IOException
creates a local SMTP server.
address
- the adress to be boundsecContext
- the security context to be usedlreceiver
- the blending layer to be usedIOException
- if interfaces cannot be boundpublic void gotConnect(ServerConnection ac)
gotConnect
in interface SocketListener
public TransportReceiver getTransportReceiver()
public final TransportReceiver setTransportReceiver(TransportReceiver lreceiver)
Sets the belnding layer to be used.
lreceiver
- the blending layer to be setpublic void shutdown()
public int getPort()
Copyright © 2023. All rights reserved.