]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/TcpDxe/SockImpl.h
2 The function declaration that provided for Socket Interface.
4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
17 Signal a event with the given status.
19 @param[in] Token The token's event is to be signaled.
20 @param[in] TokenStatus The status to be sent with the event.
23 #define SIGNAL_TOKEN(Token, TokenStatus) \
25 (Token)->Status = (TokenStatus); \
26 gBS->SignalEvent ((Token)->Event); \
29 #define SOCK_HEADER_SPACE (60 + 60 + 72)
32 Process the TCP send data, buffer the tcp txdata and append
33 the buffer to socket send buffer, then try to send it.
35 @param[in] Sock Pointer to the socket.
36 @param[in] TcpTxData Pointer to the application provided send buffer.
38 @retval EFI_SUCCESS The operation completed successfully.
39 @retval EFI_OUT_OF_RESOURCES Failed due to resource limits.
43 SockProcessTcpSndData (
49 Get received data from the socket layer to the receive token.
51 @param[in, out] Sock Pointer to the socket.
52 @param[in, out] RcvToken Pointer to the application provided receive token.
54 @return The length of data received in this token.
60 IN OUT SOCK_IO_TOKEN
*RcvToken
64 Flush the sndBuffer and rcvBuffer of socket.
66 @param[in, out] Sock Pointer to the socket.
75 Cancel the tokens in the specific token list.
77 @param[in] Token Pointer to the Token. If NULL, all tokens
78 in SpecifiedTokenList will be canceled.
79 @param[in, out] SpecifiedTokenList Pointer to the token list to be checked.
81 @retval EFI_SUCCESS Cancel the tokens in the specific token listsuccessfully.
82 @retval EFI_NOT_FOUND The Token is not found in SpecifiedTokenList.
87 IN SOCK_COMPLETION_TOKEN
*Token
,
88 IN OUT LIST_ENTRY
*SpecifiedTokenList
92 Create a socket with initial data SockInitData.
94 @param[in] SockInitData Pointer to the initial data of the socket.
96 @return Pointer to the newly created socket, return NULL when exception occured.
101 IN SOCK_INIT_DATA
*SockInitData
107 @param[in, out] Sock Pointer to the socket.