Open topic with navigation CAPL Functions » TCP/IP API » OnTcpConnectDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
OnTcpConnect
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Method Syntax
Method SyntaxDescription
If the CAPL program implements this callback it is called when an asynchronous connection operation completes. This means that the connection to the remote station has been established. It is not yet certain at this time that the remote station has accepted the connection with TcpAccept. If a listen socket of a remote station is blocked, error 10061 (Connection refused) is output in the result parameter.Parameters
- socket: The socket handle or socket object.
- result: The specific result code of the operation. If the operation completed successfully the value is 0. Otherwise the value is an error code. Error code 10061 (Connection refused): The listen socket of a server is occupied by another connection that has not yet been accepted with TcpAccept. Because the internal queue for incoming connections is set to 1 in the CANoe DE product, only one node can ever queue up there. All other nodes are refused with error 10061.