#include <RemoteIO.h>
Public Member Functions | |
RemoteIO () | |
RemoteIO (unsigned chans) | |
~RemoteIO () | |
status | open () |
status | open (unsigned port) |
virtual status | start () |
status | stop () |
status | close () |
open/close start/stop methods | |
void | process_request_packet () |
int | get_out_sock () |
sample * | get_buffer () |
struct sockaddr_in * | get_client_addr () |
Protected Member Functions | |
void | init_io (unsigned in, unsigned out) |
Protected Attributes | |
unsigned | _inputs |
unsigned | _outputs |
Buffer | _outputBuffer |
Buffer | _inputBuffer |
struct sockaddr_in _clientAddr | _myAddr |
int | _inSock |
int | _outSock |
sample * | _buffer |
RemoteIO::RemoteIO | ( | ) |
References init_io().
RemoteIO::RemoteIO | ( | unsigned | chans | ) |
References init_io().
RemoteIO::~RemoteIO | ( | ) |
References _buffer.
void RemoteIO::init_io | ( | unsigned | in, | |
unsigned | out | |||
) | [protected] |
References _buffer, _inputBuffer, _inputs, _inSock, _outputBuffer, _outputs, _outSock, csl::Buffer::allocateBuffers(), csl::kLogError, and csl::logMsg().
Referenced by RemoteIO().
status RemoteIO::open | ( | ) | [virtual] |
status RemoteIO::open | ( | unsigned | port | ) |
References _inSock, and csl::logMsg().
status RemoteIO::start | ( | void | ) | [virtual] |
Reimplemented from csl::IO.
References _inSock, _outSock, csl::CSL_CreateThread(), csl::logMsg(), and csl::RemoteIO_read_loop().
status RemoteIO::close | ( | ) | [virtual] |
open/close start/stop methods
Reimplemented from csl::IO.
References _inSock, _outSock, and closesocket.
void RemoteIO::process_request_packet | ( | ) |
References _buffer, _inputBuffer, _outputBuffer, _outputs, _outSock, GET_TIME, csl::kLogError, and csl::logMsg().
int csl::RemoteIO::get_out_sock | ( | ) | [inline] |
References _outSock.
struct sockaddr_in* csl::RemoteIO::get_client_addr | ( | ) | [inline, read] |
unsigned csl::RemoteIO::_inputs [protected] |
Referenced by init_io().
unsigned csl::RemoteIO::_outputs [protected] |
Referenced by init_io(), and process_request_packet().
Buffer csl::RemoteIO::_outputBuffer [protected] |
Referenced by init_io(), and process_request_packet().
Buffer csl::RemoteIO::_inputBuffer [protected] |
Referenced by init_io(), and process_request_packet().
struct sockaddr_in _clientAddr csl::RemoteIO::_myAddr [read, protected] |
int csl::RemoteIO::_inSock [protected] |
int csl::RemoteIO::_outSock [protected] |
Referenced by close(), get_out_sock(), init_io(), process_request_packet(), start(), and stop().
sample* csl::RemoteIO::_buffer [protected] |
Referenced by get_buffer(), init_io(), process_request_packet(), and ~RemoteIO().