GATE
SocopDriver Class Reference
Inheritance diagram for SocopDriver:
socop_driver_class Socop SocopMaster SocopSlave

Public Types

typedef socop_read_byte_t Bytereader
 
typedef socop_write_byte_t Bytewriter
 
- Public Types inherited from Socop
enum  Result {
  Ok = SOCOP_OK , Error = SOCOP_ERROR , Error_NotImpl = SOCOP_ERROR_NOTIMPL , Error_IO = SOCOP_ERROR_IO ,
  Error_Timeout = SOCOP_ERROR_TIMEOUT , Error_InvalidData = SOCOP_ERROR_INVALIDDATA , Error_OutOfBounds = SOCOP_ERROR_OUTOFBOUNDS , Error_WrongMessage = SOCOP_ERROR_WRONGMESSAGE ,
  Error_ResourceError = SOCOP_ERROR_RESOURCEERROR , Error_Corruption = SOCOP_ERROR_CORRUPTION , Error_InvalidArg = SOCOP_ERROR_INVALIDARG , Error_Failed = SOCOP_ERROR_FAILED
}
 
enum  Flags { Flag_Receive = SOCOP_MSG_FLAG_RECV , Flag_Send = SOCOP_MSG_FLAG_SEND , Flag_Error = SOCOP_MSG_FLAG_ERROR }
 
typedef socop_socket_t Socket
 
typedef socop_addr_t Address
 
typedef socop_word_t word_t
 

Public Member Functions

 SocopDriver (Bytereader reader_function, void *reader_param, Bytewriter writer_function, void *writer_param)
 

Protected Member Functions

virtual Socop::Result do_read (unsigned char &received_byte, bool want_more)
 
virtual Socop::Result do_write (unsigned char byte_to_send, bool send_more)
 

Static Protected Member Functions

static int do_read_dispatcher (unsigned char *num, unsigned want_more, void *user_param)
 
static int do_write_dispatcher (unsigned char num, unsigned send_more, void *user_param)
 
- Static Protected Member Functions inherited from Socop
static Result translate_result (int result)
 
static int translate_result (Result result)
 

Additional Inherited Members

- Public Attributes inherited from socop_driver_class
socop_read_byte_t read_byte
 
void * read_param
 
socop_write_byte_t write_byte
 
void * write_param
 

The documentation for this class was generated from the following files: