Package com.automation_pros.odva.encap
Class TcpConx.EncapUnitProducer
- java.lang.Object
-
- com.automation_pros.odva.encap.TcpConx.EncapUnitProducer
-
- All Implemented Interfaces:
AppLinkBase
,LinkProducer
- Enclosing class:
- TcpConx
public class TcpConx.EncapUnitProducer extends java.lang.Object implements LinkProducer
-
-
Field Summary
Fields Modifier and Type Field Description protected ConxInstance
conx
protected boolean
disconnectFlag
protected int
prodid
-
Constructor Summary
Constructors Constructor Description EncapUnitProducer(ConxInstance conx, int prodid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disconnect()
When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up.boolean
isDisconnected()
void
linkProduce(long txID, java.nio.ByteBuffer payload)
Link Producer objects handle data flow from generic connections to abstract transport links.
-
-
-
Field Detail
-
conx
protected final ConxInstance conx
-
prodid
protected final int prodid
-
disconnectFlag
protected boolean disconnectFlag
-
-
Constructor Detail
-
EncapUnitProducer
public EncapUnitProducer(ConxInstance conx, int prodid)
-
-
Method Detail
-
linkProduce
public void linkProduce(long txID, java.nio.ByteBuffer payload)
Description copied from interface:LinkProducer
Link Producer objects handle data flow from generic connections to abstract transport links. When carrying messaging traffic, the txID uniquely identifies the request/reply pair; typically the encapsulation sender context.- Specified by:
linkProduce
in interfaceLinkProducer
- Parameters:
txID
- Transport layer transaction ID uniquely identifying this message or reply, if applicable. Zero for I/O connections.payload
- Complete CIP data payload, including CIP sequence number, if any.
-
disconnect
public void disconnect()
Description copied from interface:AppLinkBase
When a connection is closed or an application forces a disconnect, this shutdown method is called to clean up. It should close the connection when called by the application.- Specified by:
disconnect
in interfaceAppLinkBase
-
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnected
in interfaceAppLinkBase
-
-