public interface SwapModem
| Modifier and Type | Interface and Description |
|---|---|
static class |
SwapModem.Type
Type of SWAP modem.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MessageListener l)
add a message listener to receive messages
|
void |
close()
disconnect and close the modem
|
ModemSetup |
getSetup()
get the network setup
|
SwapModem.Type |
getType()
determine the type of virtual modem
|
boolean |
isOpen()
Check if the modem is open (connected to it's implementation device)
|
void |
open()
connect to the modem.
|
void |
removeListener(MessageListener l)
remove a listener
|
void |
send(SwapMessage msg)
send a message out onto the network
|
void |
setSetup(ModemSetup setup)
set the network setup
|
void open() throws SwapException
SwapException - Thrown if there is a problem opening the modem.void close()
throws SwapException
SwapException - Thrown if there is a problem closing the modem.boolean isOpen()
void send(SwapMessage msg) throws SwapException
msg - Message to send.SwapException - Thrown if there a a problem sending a message to the modem.void addListener(MessageListener l)
l - listener to add.void removeListener(MessageListener l)
l - listener to removeModemSetup getSetup() throws SwapException
SwapException - Thrown if there is a problem
retrieving the setupvoid setSetup(ModemSetup setup) throws SwapException
setup - The modem setup to applySwapException - Thrown if there is a problem
applying the setupSwapModem.Type getType()
Copyright © 2015. All rights reserved.