Implement a part of NamedPipe and the related code.