Initial commit of files
This commit is contained in:
59
include/libnet++/UdsClient.h
Normal file
59
include/libnet++/UdsClient.h
Normal file
@ -0,0 +1,59 @@
|
||||
//
|
||||
// TCP Client
|
||||
//
|
||||
|
||||
/* prevent multiple inclusions */
|
||||
#ifndef __UdsClient__
|
||||
#define __UdsClient__
|
||||
|
||||
/* includes *****************************************************************/
|
||||
|
||||
#include "UdsSocket.h"
|
||||
#include "Client.h"
|
||||
|
||||
/* defines ******************************************************************/
|
||||
|
||||
/* macros *******************************************************************/
|
||||
|
||||
/* structs & typedefs *******************************************************/
|
||||
|
||||
/* c class definitions ******************************************************/
|
||||
|
||||
class UdsClient : public Client, public UdsSocket {
|
||||
// public data
|
||||
public:
|
||||
|
||||
// protected data
|
||||
protected:
|
||||
|
||||
// private data
|
||||
private:
|
||||
|
||||
// static data
|
||||
|
||||
// public methods
|
||||
public:
|
||||
// constructors
|
||||
UdsClient();
|
||||
UdsClient( const char *file );
|
||||
|
||||
// destructor
|
||||
virtual ~UdsClient();
|
||||
|
||||
// public methods
|
||||
int Connect( const char *file );
|
||||
|
||||
// virtual functions
|
||||
|
||||
// exceptions
|
||||
class UdsClientException
|
||||
{
|
||||
char *toString(void) { return strerror(errno); };
|
||||
};
|
||||
|
||||
// static methods
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user