Wrapper around POSIX socket.
More...
#include <PosixProcess.h>
Wrapper around POSIX socket.
You can derive from this class to use POSIX socket with your Process instance.
- Examples:
- advanced_example.cpp.
◆ PosixProcess()
| PdCom::PosixProcess::PosixProcess |
( |
const char * |
host, |
|
|
unsigned short |
port |
|
) |
| |
Constructor.
- Parameters
-
| host | Host, can be a hostname or an IP(v6) address. |
| port | Port |
- Exceptions
-
◆ posixRead()
| size_t PdCom::PosixProcess::posixRead |
( |
char * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
protected |
Wrapper for read().
- Parameters
-
| buf | Buffer to read into. |
| count | Size of the buffer in bytes. |
- Returns
- Number of bytes read.
- Exceptions
-
- Examples:
- advanced_example.cpp.
◆ posixWrite()
| void PdCom::PosixProcess::posixWrite |
( |
const char * |
buf, |
|
|
size_t |
count |
|
) |
| |
|
protected |
Wrapper for write().
This loops around write(), so no short writes can occur.
- Parameters
-
| buf | Buffer to send. |
| count | Number of bytes to send. |
- Exceptions
-
- Examples:
- advanced_example.cpp.
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/pdcom5-5.0alpha1.35.g0d31fd3/include/pdcom5/PosixProcess.h