// // Socket // /* prevent multiple inclusions */ #ifndef __UdsSocket__ #define __UdsSocket__ /* includes *****************************************************************/ #include "Socket.h" #include /* defines ******************************************************************/ #define MAX_UDS_CLIENTS 10 /* macros *******************************************************************/ /* structs & typedefs *******************************************************/ /* c class definitions ******************************************************/ class UdsSocket : public Socket { // public data public: // protected data protected: char m_file[1024]; struct sockaddr_storage sock_addr; socklen_t sock_len; // private data private: // static data // public methods public: // constructors UdsSocket(); // destructor virtual ~UdsSocket(); // copy constructor UdsSocket( const UdsSocket &src ) ; const UdsSocket& operator=( const UdsSocket &src ); // public methods int Socket( const char *file ); int Client( const char *file ); int Server( const char *file ); // control // status // virtual functions // exceptions // static methods // private methods private: }; #endif