类 EpollStreamTransport
java.lang.Object
com.huangjian.modbus4j.sero.messaging.EpollStreamTransport
- 所有已实现的接口:
Transport
- 直接已知子类:
EpollStreamTransportCharSpaced
First, instatiate with the streams and epoll. Then add a data consumer, or create a message control and pass this as
the transport (which will make the message control the data consumer). Stop the transport by stopping the message
control).
-
构造器概要
构造器构造器说明EpollStreamTransport(InputStream in, OutputStream out, InputStreamEPollWrapper epoll) Constructor for EpollStreamTransport. -
方法概要
修饰符和类型方法说明voidremoveConsumer.voidsetConsumer(DataConsumer consumer) setConsumer.voidwrite(byte[] data) write.voidwrite(byte[] data, int len) write.
-
构造器详细资料
-
EpollStreamTransport
Constructor for EpollStreamTransport.
- 参数:
in- aInputStreamobject.out- aOutputStreamobject.epoll- aInputStreamEPollWrapperobject.
-
-
方法详细资料
-
setConsumer
setConsumer.
- 指定者:
setConsumer在接口中Transport- 参数:
consumer- aDataConsumerobject.
-
removeConsumer
public void removeConsumer()removeConsumer.
- 指定者:
removeConsumer在接口中Transport
-
write
write.
- 指定者:
write在接口中Transport- 参数:
data- an array ofobjects.引用无效
byte- 抛出:
IOException- if any.
-
write
write.
- 指定者:
write在接口中Transport- 参数:
data- an array ofobjects.引用无效
bytelen- a int.- 抛出:
IOException- if any.
-