Use Mde library and definition instead of some native definitions in NetLib, to simply network library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4693 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -357,12 +357,12 @@ struct _SOCKET {
|
||||
EFI_HANDLE DriverBinding; // socket't driver binding protocol
|
||||
EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath;
|
||||
EFI_DEVICE_PATH_PROTOCOL *DevicePath;
|
||||
NET_LIST_ENTRY Link;
|
||||
LIST_ENTRY Link;
|
||||
SOCK_CONFIGURE_STATE ConfigureState;
|
||||
SOCK_TYPE Type;
|
||||
SOCK_STATE State;
|
||||
UINT16 Flag;
|
||||
NET_LOCK Lock; // the lock of socket
|
||||
EFI_LOCK Lock; // the lock of socket
|
||||
SOCK_BUFFER SndBuffer; // send buffer of application's data
|
||||
SOCK_BUFFER RcvBuffer; // receive buffer of received data
|
||||
EFI_STATUS SockError; // the error returned by low layer protocol
|
||||
@ -374,14 +374,14 @@ struct _SOCKET {
|
||||
UINT32 BackLog; // the limit of connection to this socket
|
||||
UINT32 ConnCnt; // the current count of connections to it
|
||||
SOCKET *Parent; // listening parent that accept the connection
|
||||
NET_LIST_ENTRY ConnectionList; // the connections maintained by this socket
|
||||
LIST_ENTRY ConnectionList; // the connections maintained by this socket
|
||||
//
|
||||
// the queue to buffer application's asynchronous token
|
||||
//
|
||||
NET_LIST_ENTRY ListenTokenList;
|
||||
NET_LIST_ENTRY RcvTokenList;
|
||||
NET_LIST_ENTRY SndTokenList;
|
||||
NET_LIST_ENTRY ProcessingSndTokenList;
|
||||
LIST_ENTRY ListenTokenList;
|
||||
LIST_ENTRY RcvTokenList;
|
||||
LIST_ENTRY SndTokenList;
|
||||
LIST_ENTRY ProcessingSndTokenList;
|
||||
|
||||
SOCK_COMPLETION_TOKEN *ConnectionToken; // app's token to signal if connected
|
||||
SOCK_COMPLETION_TOKEN *CloseToken; // app's token to signal if closed
|
||||
@ -408,7 +408,7 @@ struct _SOCKET {
|
||||
// the token structure buffered in socket layer
|
||||
//
|
||||
typedef struct _SOCK_TOKEN {
|
||||
NET_LIST_ENTRY TokenList; // the entry to add in the token list
|
||||
LIST_ENTRY TokenList; // the entry to add in the token list
|
||||
SOCK_COMPLETION_TOKEN *Token; // The application's token
|
||||
UINT32 RemainDataLen; // unprocessed data length
|
||||
SOCKET *Sock; // the poninter to the socket this token
|
||||
|
Reference in New Issue
Block a user