]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.h
3 Copyright (c) 2005 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
27 #define SOCK_TRIM_RCV_BUFF(Sock, Len) \
28 (NetbufQueTrim ((Sock)->RcvBuffer.DataQueue, (Len)))
30 #define SIGNAL_TOKEN(Token, TokenStatus) \
32 (Token)->Status = (TokenStatus); \
33 gBS->SignalEvent ((Token)->Event); \
36 #define SOCK_HEADER_SPACE (60 + 60 + 72)
39 // Supporting function for both SockImpl and SockInterface
47 SockProcessTcpSndData (
63 IN SOCK_IO_TOKEN
*RcvToken
73 IN SOCK_INIT_DATA
*SockInitData