//--------------------------------------------------------------------------- #ifndef CommonClassH #define CommonClassH #include "XProtocol.h" //----------------- Server -------------------------------------------------- class ServerSocket { private: public: __fastcall ServerSocket(); __fastcall ~ServerSocket(); int __fastcall ServerStart(char *IP, unsigned short PORT); int __fastcall sSend(); int __fastcall sRecv(); int __fastcall ServerClose(SOCKET Csocket); SOCKET client, server; }; //----------------- Client -------------------------------------------------- class ClientSocket { private: public: __fastcall ClientSocket(); __fastcall ~ClientSocket(); } #endif