blob: 8c87bfe5baec55265bf8c6384bf2d08c74a4dabc [file] [log] [blame]
/******************************************************************************
*(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 SetUserData(void *data);
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