|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wonderly.jeaprs.JeAPRS.SocketAPRS
Field Summary |
Fields inherited from interface wonderly.jeaprs.TNC |
TNC_TYPE_EHF, TNC_TYPE_HF, TNC_TYPE_NET, TNC_TYPE_UHF, TNC_TYPE_VHF |
Constructor Summary | |
JeAPRS.SocketAPRS(java.lang.String host,
int port)
|
Method Summary | |
void |
close()
Close the stream when done |
void |
flush()
|
java.io.InputStream |
getInputStream()
Returns the input stream for the TNC. |
java.lang.String |
getModuleId()
returns the name used to identify this TNC to the user |
java.io.OutputStream |
getOutputStream()
Returns the output stream for the TNC |
int |
getTNCType()
Returns what type this TNC was configured for (TNC_TYPE_*). |
void |
initialize(wonderly.jeaprs.ui.JeAPRSUI ui)
Set everything up, open ports etc |
void |
initTNC()
Send initialization commands to TNC |
boolean |
isInitialized()
Tracks whether initTNC has been called |
boolean |
isKiss()
|
boolean |
isStopped()
|
void |
lockTNC(boolean lock)
Causes this object to block/release access to the TNC stream |
byte[] |
readPacket()
Reads a packet from the TNC. |
void |
setKiss(boolean how)
sets the use of KISS mode based on the passed parameter |
void |
setModuleId(java.lang.String name)
Sets the name used for identifying this TNC to the user |
void |
setTNCType(int type)
Sets what type this TNC should be recognized as providing (TNC_TYPE_*). |
void |
startTNC()
|
void |
stop()
|
void |
waitReady()
Waits until the TNC stream is ready to be used |
void |
write(wonderly.jeaprs.ByteString call,
wonderly.jeaprs.ByteString toCall,
wonderly.jeaprs.ByteString path,
byte[] arr)
Writes only the passed bytes to the TNC |
void |
write(wonderly.jeaprs.ByteString call,
wonderly.jeaprs.ByteString toCall,
wonderly.jeaprs.ByteString path,
wonderly.jeaprs.ByteString str)
Writes the passed string with a <CR> to the TNC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JeAPRS.SocketAPRS(java.lang.String host, int port)
Method Detail |
public void setModuleId(java.lang.String name)
setModuleId
in interface IOModule
public java.lang.String getModuleId()
getModuleId
in interface IOModule
public void close()
APRSInput
close
in interface APRSInput
public void flush() throws java.io.IOException
flush
in interface TNC
java.io.IOException
public void setTNCType(int type)
TNC
setTNCType
in interface TNC
public int getTNCType()
TNC
getTNCType
in interface TNC
public boolean isKiss()
isKiss
in interface TNC
public void setKiss(boolean how)
TNC
setKiss
in interface TNC
public boolean isStopped()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface TNC
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface TNC
java.io.IOException
public void lockTNC(boolean lock)
lockTNC
in interface TNC
public void initialize(wonderly.jeaprs.ui.JeAPRSUI ui)
initialize
in interface TNC
public void startTNC()
public void initTNC() throws java.io.IOException
initTNC
in interface TNC
java.io.IOException
public boolean isInitialized()
isInitialized
in interface TNC
public void waitReady()
waitReady
in interface TNC
public void write(wonderly.jeaprs.ByteString call, wonderly.jeaprs.ByteString toCall, wonderly.jeaprs.ByteString path, wonderly.jeaprs.ByteString str) throws java.io.IOException
write
in interface APRSOutput
toCall
- the to call/unproto field.
java.io.IOException
public void write(wonderly.jeaprs.ByteString call, wonderly.jeaprs.ByteString toCall, wonderly.jeaprs.ByteString path, byte[] arr) throws java.io.IOException
write
in interface APRSOutput
toCall
- the to call/unproto field.arr
- the contents of the packet.
java.io.IOException
public byte[] readPacket() throws java.io.IOException
APRSInput
readPacket
in interface APRSInput
java.io.IOException
APRSStreamHandler
,
wonderly.jeaprs.aprs.APRSEventListener
,
APRSStatusListener
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |