Botan
1.11.15
|
00001 /* 00002 * Pipe I/O for Unix 00003 * (C) 1999-2007 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_PIPE_UNIXFD_H__ 00009 #define BOTAN_PIPE_UNIXFD_H__ 00010 00011 #include <botan/pipe.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * Stream output operator; dumps the results from pipe's default 00017 * message to the output stream. 00018 * @param out file descriptor for an open output stream 00019 * @param pipe the pipe 00020 */ 00021 int BOTAN_DLL operator<<(int out, Pipe& pipe); 00022 00023 /** 00024 * File descriptor input operator; dumps the remaining bytes of input 00025 * to the (assumed open) pipe message. 00026 * @param in file descriptor for an open input stream 00027 * @param pipe the pipe 00028 */ 00029 int BOTAN_DLL operator>>(int in, Pipe& pipe); 00030 00031 } 00032 00033 #endif