| /****************************************************************************** |
| *(C) Copyright 2011 Marvell International Ltd. |
| * All Rights Reserved |
| ******************************************************************************/ |
| /*-------------------------------------------------------------------------------------------------------------------- |
| * ------------------------------------------------------------------------------------------------------------------- |
| * |
| * Filename: tcp_api.h |
| * |
| * Description: The APIs to handle TCP operations. |
| * |
| * History: |
| * Aug, 13 2012 - Haili Wang(hlw@marvell.com) Creation of file |
| * |
| * Notes: |
| * |
| ******************************************************************************/ |
| |
| #ifndef _DIAG_TCP_API_INCLUDED |
| #define _DIAG_TCP_API_INCLUDED |
| |
| void InitTCP(void); |
| int SendTCPdata(const unsigned char * data, unsigned len); |
| int createListenSocket(void); |
| void closeDataSocket(void); |
| void closeListenSocket(void); |
| int prepareListenSocket(void); |
| int configInterface(void); |
| void handleTCPUevent(int); |
| #endif |