File: wvloopback.h

package info (click to toggle)
wvstreams 4.6.1-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,972 kB
  • sloc: cpp: 64,200; ansic: 4,154; sh: 4,094; makefile: 545; perl: 402
file content (25 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 */ 
#ifndef __WVLOOPBACK_H
#define __WVLOOPBACK_H

#include "wvfdstream.h"

/**
 * Implementation of a WvLoopback stream.  WvLoopback uses a
 * socketpair() to create a stream that allows you to read()
 * everything written to it, even (especially) across a fork() call.
 */
class WvLoopback : public WvFDStream
{
public:
    WvLoopback();

public:
    const char *wstype() const { return "WvLoopback"; }
};

#endif // __WVLOOPBACK_H