#if !defined(CSOCKET_H__INCLUDED_)
#define CSOCKET_H__INCLUDED_

#define INVALID_SOCKET  (SOCKET)(~0)
#define SOCKET_ERROR            (-1)

class cSocketM
{
public:
    cSocketM();

    bool Create(void);
    void Close(void);
    bool Connect(const char *lpszHostAddress,unsigned int nHostPort);
//  bool Connect( string lpszHostAddress, unsigned int nHostPort );

    int Receive( void* lpBuf, int nBufLen, int nFlags = 0 );
    int Send( const void* lpBuf, int nBufLen, int nFlags = 0 );

    int WaitReceive();

private:
    int m_Sck;
};

#endif // !defined(AFX_POP3_H__CFFD2FBB_859A_11D2_A529_444553540000__INCLUDED_)
