 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
12 #ifndef DRV_SOCKETREADTASK_HPP
13 #define DRV_SOCKETREADTASK_HPP
55 const bool reconnect =
true,
141 static void readTask(
void* pointer);
149 #endif // DRV_SOCKETREADTASK_HPP
void stopSocketTask(void)
stop the socket read task and close the associated socket.
SocketReadTask()
constructs the socket read task
Helper base-class for setting up Berkley sockets.
bool m_reconnect
Force reconnection.
SocketIpStatus open()
open the socket for communications
bool m_stop
Stops the task when set to true.
void close()
close the socket communications
virtual IpSocket & getSocketHandler()=0
returns a reference to the socket handler
supports a task to read a given socket adaptation
void startSocketTask(const Fw::StringBase &name, const NATIVE_INT_TYPE priority, const NATIVE_INT_TYPE stack, const bool reconnect=true, const NATIVE_INT_TYPE cpuAffinity=-1)
start the socket read task to start producing data
SocketIpStatus
Status enumeration for socket return values.
virtual ~SocketReadTask()
destructor of the socket read task
static void readTask(void *pointer)
a task designed to read from the socket and output incoming data
virtual void sendBuffer(Fw::Buffer buffer, SocketIpStatus status)=0
sends a buffer to filled with data
Os::Task::TaskStatus joinSocketTask(void **value_ptr)
joins to the stopping read task to wait for it to close
int NATIVE_INT_TYPE
native integer type declaration
virtual Fw::Buffer getBuffer()=0
returns a buffer to fill with data