Generic NamedPipe Client

Refactor