summaryrefslogtreecommitdiff
path: root/networking/tcpudp_perhost.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-03-17 09:17:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-03-17 09:17:27 +0000
commit4866e905d7e1f11d86374fad4e46aa2bd669c2ba (patch)
treea6a8e9521de92d658903ba9f54cd01e94a34c262 /networking/tcpudp_perhost.h
parent4ee7cd4f6f9f85871c8814bb524d3e691a2992a9 (diff)
downloadbusybox-w32-4866e905d7e1f11d86374fad4e46aa2bd669c2ba.tar.gz
busybox-w32-4866e905d7e1f11d86374fad4e46aa2bd669c2ba.tar.bz2
busybox-w32-4866e905d7e1f11d86374fad4e46aa2bd669c2ba.zip
svn add/svn rm to actually move tcp/udpsvd...
Diffstat (limited to 'networking/tcpudp_perhost.h')
-rw-r--r--networking/tcpudp_perhost.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/networking/tcpudp_perhost.h b/networking/tcpudp_perhost.h
new file mode 100644
index 000000000..9fc8cee61
--- /dev/null
+++ b/networking/tcpudp_perhost.h
@@ -0,0 +1,29 @@
1/* Based on ipsvd utilities written by Gerrit Pape <pape@smarden.org>
2 * which are released into public domain by the author.
3 * Homepage: http://smarden.sunsite.dk/ipsvd/
4 *
5 * Copyright (C) 2007 Denys Vlasenko.
6 *
7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
8 */
9
10struct hcc {
11 char *ip;
12 int pid;
13};
14
15void ipsvd_perhost_init(unsigned);
16
17/* Returns number of already opened connects to this ips, including this one.
18 * ip should be a malloc'ed ptr.
19 * If return value is <= maxconn, ip is inserted into the table
20 * and pointer to table entry if stored in *hccpp
21 * (useful for storing pid later).
22 * Else ip is NOT inserted (you must take care of it - free() etc) */
23unsigned ipsvd_perhost_add(char *ip, unsigned maxconn, struct hcc **hccpp);
24
25/* Finds and frees element with pid */
26void ipsvd_perhost_remove(int pid);
27
28//unsigned ipsvd_perhost_setpid(int pid);
29//void ipsvd_perhost_free(void);