|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SerialSession
An IoSession for serial communication transport.
| Method Summary | |
|---|---|
SerialSessionConfig |
getConfig()
|
SerialAddress |
getLocalAddress()
Returns the socket address of local machine which is associated with this session. |
SerialAddress |
getRemoteAddress()
Returns the socket address of remote peer. |
SerialAddress |
getServiceAddress()
Returns the socket address of the IoService listens to to manage
this session. |
boolean |
isDTR()
Gets the state of the DTR (Data Terminal Ready) bit in the UART, if supported by the underlying implementation. |
boolean |
isRTS()
Gets the state of the RTS (Request To Send) bit in the UART, if supported by the underlying implementation. |
void |
setDTR(boolean dtr)
Sets or clears the DTR (Data Terminal Ready) bit in the UART, if supported by the underlying implementation. |
void |
setRTS(boolean rts)
Sets or clears the RTS (Request To Send) bit in the UART, if supported by the underlying implementation. |
| Method Detail |
|---|
SerialSessionConfig getConfig()
getConfig in interface IoSessionSerialAddress getRemoteAddress()
IoSession
getRemoteAddress in interface IoSessionSerialAddress getLocalAddress()
IoSession
getLocalAddress in interface IoSessionSerialAddress getServiceAddress()
IoSessionIoService listens to to manage
this session. If this session is managed by IoAcceptor, it
returns the SocketAddress which is specified as a parameter of
IoAcceptor.bind(). If this session is managed by
IoConnector, this method returns the same address with
that of IoSession.getRemoteAddress().
getServiceAddress in interface IoSessionvoid setRTS(boolean rts)
rts - true for set RTS, false for clearingboolean isRTS()
void setDTR(boolean dtr)
dtr - true for set DTR, false for clearingboolean isDTR()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||