TianoCore EDK2 master
|
Go to the source code of this file.
Macros | |
#define | SIGNAL_TOKEN(Token, TokenStatus) |
#define | SOCK_HEADER_SPACE (60 + 60 + 72) |
Functions | |
EFI_STATUS | SockProcessTcpSndData (IN SOCKET *Sock, IN VOID *TcpTxData) |
UINT32 | SockProcessRcvToken (IN OUT SOCKET *Sock, IN OUT SOCK_IO_TOKEN *RcvToken) |
VOID | SockConnFlush (IN OUT SOCKET *Sock) |
EFI_STATUS | SockCancelToken (IN SOCK_COMPLETION_TOKEN *Token, IN OUT LIST_ENTRY *SpecifiedTokenList) |
SOCKET * | SockCreate (IN SOCK_INIT_DATA *SockInitData) |
VOID | SockDestroy (IN OUT SOCKET *Sock) |
The function declaration that provided for Socket Interface.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SockImpl.h.
#define SIGNAL_TOKEN | ( | Token, | |
TokenStatus | |||
) |
Signal a event with the given status.
[in] | Token | The token's event is to be signaled. |
[in] | TokenStatus | The status to be sent with the event. |
Definition at line 23 of file SockImpl.h.
#define SOCK_HEADER_SPACE (60 + 60 + 72) |
Definition at line 29 of file SockImpl.h.
EFI_STATUS SockCancelToken | ( | IN SOCK_COMPLETION_TOKEN * | Token, |
IN OUT LIST_ENTRY * | SpecifiedTokenList | ||
) |
Cancel the tokens in the specific token list.
[in] | Token | Pointer to the Token. If NULL, all tokens in SpecifiedTokenList will be canceled. |
[in,out] | SpecifiedTokenList | Pointer to the token list to be checked. |
EFI_SUCCESS | Cancel the tokens in the specific token listsuccessfully. |
EFI_NOT_FOUND | The Token is not found in SpecifiedTokenList. |
Definition at line 573 of file SockImpl.c.
Flush the sndBuffer and rcvBuffer of socket.
[in,out] | Sock | Pointer to the socket. |
Definition at line 857 of file SockImpl.c.
SOCKET * SockCreate | ( | IN SOCK_INIT_DATA * | SockInitData | ) |
Create a socket with initial data SockInitData.
[in] | SockInitData | Pointer to the initial data of the socket. |
Create a socket with initial data SockInitData.
[in] | SockInitData | Pointer to the initial data of the socket. |
Definition at line 633 of file SockImpl.c.
Destroy a socket.
[in,out] | Sock | Pointer to the socket. |
Definition at line 809 of file SockImpl.c.
Get received data from the socket layer to the receive token.
[in,out] | Sock | Pointer to the socket. |
[in,out] | RcvToken | Pointer to the application provided receive token. |
Definition at line 304 of file SockImpl.c.
EFI_STATUS SockProcessTcpSndData | ( | IN SOCKET * | Sock, |
IN VOID * | TcpTxData | ||
) |
Process the TCP send data, buffer the tcp txdata and append the buffer to socket send buffer, then try to send it.
[in] | Sock | Pointer to the socket. |
[in] | TcpTxData | Pointer to the application provided send buffer. |
EFI_SUCCESS | The operation completed successfully. |
EFI_OUT_OF_RESOURCES | Failed due to resource limits. |
Process the TCP send data, buffer the tcp txdata, and append the buffer to socket send buffer, then try to send it.
[in] | Sock | Pointer to the socket. |
[in] | TcpTxData | Pointer to the application provided send buffer. |
EFI_SUCCESS | The operation completed successfully. |
EFI_OUT_OF_RESOURCES | Failed due to resource limits. |
Definition at line 349 of file SockImpl.c.