This file is indexed.

/usr/include/fetion_connection.h is in libofetion-dev 2.2.2-1.

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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/***************************************************************************
 *   Copyright (C) 2010 by lwp                                             *
 *   levin108@gmail.com                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.            *
 *                                                                         *
 *   OpenSSL linking exception                                             *
 *   --------------------------                                            *
 *   If you modify this Program, or any covered work, by linking or        *
 *   combining it with the OpenSSL project's "OpenSSL" library (or a       *
 *   modified version of that library), containing parts covered by        *
 *   the terms of OpenSSL/SSLeay license, the licensors of this            *
 *   Program grant you additional permission to convey the resulting       *
 *   work. Corresponding Source for a non-source form of such a            *
 *   combination shall include the source code for the parts of the        *
 *   OpenSSL library used as well as that of the covered work.             *
 ***************************************************************************/

#ifndef P_CONNECTION_H
#define P_CONNECTION_H

#define MAX_RECV_BUF_SIZE 61140


extern FetionConnection* tcp_connection_new(void);

extern FetionConnection* tcp_connection_new_with_port(const int port);

extern FetionConnection* tcp_connection_new_with_ip_and_port(const char* ipaddress , const int port);

extern int tcp_connection_connect(FetionConnection* connection
		, const char* ipaddress , const int port);

extern int tcp_connection_connect_with_proxy(FetionConnection* connection 
		, const char* ipaddress , const int port , Proxy *proxy);

extern int tcp_connection_send(FetionConnection* connetion , const void* buf , int len);

extern int tcp_connection_recv(FetionConnection* connection , void* recv , int len);

extern void tcp_connection_close(FetionConnection *connection);

extern int tcp_connection_select_read(FetionConnection* connection);

extern int tcp_connection_recv_dont_wait(FetionConnection* connection
		, void* recv , int len);

extern int tcp_connection_getname(FetionConnection* connection
		, char **ip , int *port);

extern int ssl_connection_start(FetionConnection* conn);

extern char* ssl_connection_get(FetionConnection* conn , const char* buf);

extern char* http_connection_get_response(FetionConnection* conn);

extern int http_connection_get_body_length(const char* http);

extern int http_connection_get_head_length(const char* http);

extern char* http_connection_encode_url(const char* url);

extern void tcp_connection_free(FetionConnection* conn);

extern char* get_ip_by_name(const char* hostname);

extern char *get_local_ip();

extern char *hexip_to_dotip(const char *ip);

#endif