Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 635 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 635 Bytes

PipeConnection

C++ class to make it easier to manage pipe connections.
The class will automatically create a thread to handle the incoming data.
Supports 2-way asynchronous communication as well (you will need a separate thread).

Example

To create a pipe, use the following:

cPipe* pipe = new cPipe;

if ( !pipe->create( "testpipe" ) )
{
	//handle error
}

To connect:

cPipe* pipe = new cPipe;

if ( !pipe->connect( "testpipe" ) )
{
	//handle error
}

Everything else you need to know is documented in the files.
Special thanks to lucass and iPower for helping me with this project.
Enjoy!