Add a callback frame work based on GIOChannel to NamedPipe.