DEENESPTFRRUARHIKOZHNL
CLASSIC Modul: std Rolle: heuristic Konfidenz: 85%

SNIP_CLASSIC_STD_SECTION_8_4_4_SoAd_TcpAccepted

Quelle: SWS_SocketAdaptor.pdf (Seite 81) • Ziel-Anforderung: SWS_TCPIP_00226

Wortlaut

8.4.4 SoAd_TcpAccepted [SWS_SoAd_00099] Definition of callback function SoAd_TcpAccepted ⌈ Service Name SoAd_TcpAccepted Syntax Std_ReturnType SoAd_TcpAccepted ( TcpIp_SocketIdType SocketId, TcpIp_SocketIdType SocketIdConnected, const TcpIp_SockAddrType* RemoteAddrPtr ) Service ID [hex] 0x15 Sync/Async Synchronous Reentrancy Non Reentrant SocketId Socket identifier of the related local socket resource which has been used at TcpIp_Bind() SocketIdConnected Socket identifier of the local socket resource used for the established connection. Parameters (in) RemoteAddrPtr IP address and port of the remote host. Parameters (inout) None Parameters (out) None Return value Std_ReturnType Result of operation E_OK upper layer accepts the established connection E_NOT_OK upper layer refuses the established connection, TcpIp stack shall close the connection. ▽ △ Description This service gets called if the stack put a socket into the listen mode before (as server) and a peer connected to it (as client). In detail: The TCP/IP stack calls this function after a socket was set into the listen state with TcpIp_TcpListen() and a TCP connection is requested by the peer. Available via SoAd.h ⌋ [SWS_SoAd_00272] ⌈If development error detection is enabled: SoAd_TcpAccepted() shall check that the service SoAd_Init() was previously called. If the check fails, SoAd_TcpAccepted() shall raise the development error SOAD_E_UNINIT.⌋ [SWS_SoAd_00273] ⌈If development error detection is enabled: SoAd_TcpAccepted() shall check parameter SocketId for being valid. If the check fails, SoAd_ TcpAccepted() shall raise the development error SOAD_E_INV_SOCKETID.⌋

Versionen & Provenienz · Zugeordnete Anforderungen

Diese Angaben zeigt der Versions-Explorer.

Begründung & Zuweisungs-Evidenz

TcpIp upper layer callback interface specification

Dokumenten-Herkunft & Rückverfolgbarkeit

Spezifikations-Dokument SWS_SocketAdaptor.pdf
Dokumentseite Seite 81
Ziel-Modul std (classic)
Ziel-Anforderung SWS_TCPIP_00226
Semantische Rolle heuristic
Automatisierungs-Konfidenz 0.85