summaryrefslogtreecommitdiffstats
path: root/include/utils/LogSocket.h
blob: 01fbfb50e33a59b8f314a80d20605f76ca503df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* utils/LogSocket.h
** 
** Copyright 2008, The Android Open Source Project
**
** This file is dual licensed.  It may be redistributed and/or modified
** under the terms of the Apache 2.0 License OR version 2 of the GNU
** General Public License.
*/

#ifndef _UTILS_LOGSOCKET_H
#define _UTILS_LOGSOCKET_H

#define SOCKET_CLOSE_LOCAL 0

void add_send_stats(int fd, int send);
void add_recv_stats(int fd, int recv);
void log_socket_close(int fd, short reason);
void log_socket_connect(int fd, unsigned int ip, unsigned short port);

#endif /* _UTILS_LOGSOCKET_H */