Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
CustomTcpProcess is the process that manipulates the custom TCP process. More...
Public Member Functions | |
TcpConnection | getConnection () |
void | connectionChanged (TcpConnection, TcpEvent) |
IPC event. More... | |
bool | sendData (QString, TcpConnection, FrameInstance) |
Sends data over this custom TCP process to the specified TCP connection. More... | |
bool | sendDataWithPduInfo (QString, TcpConnection, FrameInstance, QString, QString, QString) |
Sends data over this custom TCP process to the specified TCP connection. More... | |
bool | processData (QString, TcpConnection, FrameInstance) |
This delegate processes the incoming data and returns true if successful, otherwise false. More... | |
![]() | |
Device | getOwnerDevice () |
Returns the device for this process. More... | |
CustomTcpProcess is the process that manipulates the custom TCP process.
void CustomTcpProcess::connectionChanged | ( | TcpConnection | , |
TcpEvent | |||
) |
IPC event.
eConnectionActive = 0, eConnectionTimeout = 1, eConnectionRequest = 2, ePeerClose = 3, ePeerReset = 4, eSendUserTraffic = 5
TcpConnection CustomTcpProcess::getConnection | ( | ) |
bool CustomTcpProcess::processData | ( | QString | , |
TcpConnection | , | ||
FrameInstance | |||
) |
This delegate processes the incoming data and returns true if successful, otherwise false.
bool CustomTcpProcess::sendData | ( | QString | , |
TcpConnection | , | ||
FrameInstance | |||
) |
Sends data over this custom TCP process to the specified TCP connection.
data,the | data to send to the destination.
|
frameInstance,the | FrameInstance object. Use createFrameInstance() to create the FrameInstance object. |
bool CustomTcpProcess::sendDataWithPduInfo | ( | QString | , |
TcpConnection | , | ||
FrameInstance | , | ||
QString | , | ||
QString | , | ||
QString | |||
) |
Sends data over this custom TCP process to the specified TCP connection.
data,the | data to send to the destination.
|
frameInstance,the | FrameInstance object. Use createFrameInstance() to create the FrameInstance object. |
customProtocol,the | custom protocol name |
customPduType,the | custom PDU type |
jsonFields,the | fields in JSON string representation: |