This file is indexed.

/usr/include/wvstreams/wvtcplistener.h is in libwvstreams-dev 4.6.1-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 * WvStream-based TCP connection and server classes.
 */ 
#ifndef __WVTCPLISTENER_H
#define __WVTCPLISTENER_H

#include "wvlistener.h"
#include "wvaddr.h"

class WvIStreamList;

/** Class to easily create the Server side of a WvTCPConn. */
class WvTCPListener : public WvListener
{
public:
    /**
     * Create a WvStream that listens on _listenport of the current machine
     * This is how you set up a TCP Server.
     */
    WvTCPListener(const WvIPPortAddr &_listenport);

    virtual ~WvTCPListener();
    
    /**
     * return a new WvTCPConn socket corresponding to a newly-accepted
     * connection.  If no connection is ready immediately, we may end up
     * blocking, or we may return NULL.  You should use select(read=true)
     * to check for a waiting connection.
     */
    virtual IWvStream *accept();
    
    /** src() is a bit of a misnomer, but it returns the listener port. */
    virtual const WvIPPortAddr *src() const;
    
protected:
    WvIPPortAddr listenport;
    void accept_callback(WvIStreamList *list,
			 wv::function<void(IWvStream*)> cb,
			 IWvStream *_connection);

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


#endif // __WVTCP_H