Receiving Data
FrameReceiver
public class FrameReceiver { public FrameReceiver(FrameReceiverConfig conf) throws ModemException; public long receive(byte[] frame) throws IOException; public long receive(byte[] frame, long length) throws IOException; public long receive(byte[] frame, long offset, long length) throws IOException; public void setBlocking(long seconds, long nano); public void setNonBlocking(); public void close(); public void terminate(int urgency); public void enableStats(); public void disableStats(); public void statsSetBlocking(long seconds, long nano); public void statsSetNonblocking(); public synchronized FrameStats receiveStats() throws IOException; protected void finalize(); }
FrameReceiver
public FrameReceiver(FrameReceiverConfig conf) throws ModemException
receive
public long receive(byte[] frame) throws IOException
Receive a single frame of data and write it into frame
. This function does not block by default.
receive
public long receive(byte[] frame, long length) throws IOException
receive
public long receive(byte[] frame, long offset, long length) throws IOException
setBlocking
public void setBlocking(long seconds, long nano)
setNonBlocking
public void setNonBlocking()
close
public void close()
terminate
public void terminate(int urgency)
Shut down the receiver.
enableStats
public void enableStats()
disableStats
public void disableStats()
statsSetBlocking
public void statsSetBlocking(long seconds, long nano)
statsSetNonblocking
public void statsSetNonblocking()
receiveStats
public synchronized FrameStats receiveStats() throws IOException
finalize
protected void finalize()