diff options
Diffstat (limited to 'vio/vioelitexx.cc')
-rw-r--r-- | vio/vioelitexx.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vio/vioelitexx.cc b/vio/vioelitexx.cc new file mode 100644 index 00000000000..0eac28eaf55 --- /dev/null +++ b/vio/vioelitexx.cc @@ -0,0 +1,26 @@ +/* Copyright Abandoned 2000 Monty Program KB + This file is public domain and comes with NO WARRANTY of any kind */ + +/* + * Renamed of violite.cc to violitexx.cc because of clashes + * with violite.c + * This file implements the same functions as in violite.c, but now using + * the Vio class + */ + +#include "vio-global.h" + +Vio* +vio_new(my_socket sd, enum_vio_type type, my_bool localhost) +{ + return my_reinterpret_cast(Vio*) (new VioSocket(sd, type, localhost)); +} + + +#ifdef __WIN32__ +Vio +*vio_new_win32pipe(HANDLE hPipe) +{ + return my_reinterpret_cast(Vio*) (new VioPipe(hPipe)); +} +#endif |