Exemplo n.º 1
0
 CConn_FileStream(const string&   ifname,
                  const string&   ofname = kEmptyStr,
                  SFILE_ConnAttr* attr   = 0)
     : CConn_IOStream(TConn_Pair(FILE_CreateConnectorEx(ifname.c_str(),
                                                        ofname.c_str(),
                                                        attr),
                                 eIO_Unknown),
                      0/*timeout*/, 0/*unbuffered*/,
                      fConn_Untie)
 {
     return;
 }
Exemplo n.º 2
0
extern CONNECTOR FILE_CreateConnector
(const char* ifname,
 const char* ofname)
{
    return FILE_CreateConnectorEx(ifname, ofname, NULL);
}