Skip to content

Commit 82f1caa

Browse files
committed
Renamed to dsock
Signed-off-by: Martin Sustrik <[email protected]>
1 parent d491100 commit 82f1caa

20 files changed

+223
-1631
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ Makefile.in
1717
config.h
1818
config.log
1919
config.status
20-
dillsocks.pc
20+
dsock.pc
2121
libtool
2222
*.o
2323
*.lo
2424
dns/.dirstamp
25-
libdillsocks.la
25+
libdsock.la
2626
test-suite.log
2727
tests/.dirstamp
2828
tests/*.log
2929
tests/*.trs
3030
tests/helpers
31-
tests/tcp
32-
tests/sf

Makefile.am

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,47 +23,39 @@
2323
ACLOCAL_AMFLAGS = -I m4
2424

2525
################################################################################
26-
# dillsocks library #
26+
# dsock library #
2727
################################################################################
2828

29-
dillsocksincludedir = $(includedir)
30-
dillsocksinclude_HEADERS = dillsocks.h
29+
dsockincludedir = $(includedir)
30+
dsockinclude_HEADERS = dsock.h
3131

32-
lib_LTLIBRARIES = libdillsocks.la
32+
lib_LTLIBRARIES = libdsock.la
3333

34-
libdillsocks_la_SOURCES = \
35-
bsock.c \
36-
dbuf.h \
34+
libdsock_la_SOURCES = \
3735
ip.c \
3836
helpers.c \
39-
msock.c \
40-
sf.c \
41-
tcp.c \
4237
utils.h \
4338
utils.c \
4439
dns/dns.h \
4540
dns/dns.c
4641

47-
libdillsocks_la_LDFLAGS = -no-undefined -version-info \
48-
@DILLSOCKS_LIBTOOL_VERSION@
42+
libdsock_la_LDFLAGS = -no-undefined -version-info \
43+
@DSOCK_LIBTOOL_VERSION@
4944

50-
libdillsocks_la_CFLAGS = \
45+
libdsock_la_CFLAGS = \
5146
-fvisibility=hidden\
52-
-DDILLSOCKS_EXPORTS
47+
-DDSOCK_EXPORTS
5348

5449
pkgconfigdir = $(libdir)/pkgconfig
55-
pkgconfig_DATA = dillsocks.pc
50+
pkgconfig_DATA = dsock.pc
5651

5752
################################################################################
5853
# automated tests #
5954
################################################################################
6055

61-
check_PROGRAMS = \
62-
tests/helpers \
63-
tests/tcp \
64-
tests/sf
56+
check_PROGRAMS =
6557

66-
LDADD = libdillsocks.la
58+
LDADD = libdsock.la
6759

6860
TESTS = $(check_PROGRAMS)
6961

README.md

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1 @@
1-
**Dillsocks: Protocol library for libdill**
2-
3-
This project is an experiment. Do not use!
4-
5-
Principles:
6-
7-
1. The goal is to allow for true micro-protocol that can be composed like
8-
lego blocks to form full-fledged protocols.
9-
2. Currently we have big protocols (hundreds of pages, e.g. 3GPP) and small
10-
protocols (tens of pages, e.g. IETF). We want microprotocols (specification
11-
one paragraph long).
12-
3. To achieve that we need vertical composability (e.g. TCP on top of IP;
13-
HTTP on top of TCP)...
14-
4. And horizontal composability (e.g. HTTP switches to WebSockets; STARTTLS)
15-
5. Protocol initiation and termination is not abstracted; must be done in
16-
protocol-specific way.
17-
6. Sending data and receiving data is abstracted. Two abstractions are used:
18-
bytestream and messages.
19-
7. Sending and receiving must not presuppose each other.
20-
8. Sending and receiving with metadata (as with sndmsg, recvmsg) is not
21-
abstracted and must be done in protocol specific way.
22-
9. The system must be able to support purely "structural" protocols, for example
23-
one that joins two uni-directional protocols into a single bi-directional
24-
one.
25-
26-
Some protocols have to be supplied out of the box, to give people something
27-
to play with in the beginning. Options include:
28-
29-
1. TCP bytestream
30-
2. UNIX domain bytestream
31-
3. UDP
32-
4. Simple framing (size + data)
33-
5. Line protocol (CRLF-terminated lines of text)
34-
6. HTTP
35-
7. WebSockets
36-
8. SMTP
37-
9. Version and/or capability negotiation protocol
38-
10. SSL
39-
11. TCPMUX
40-
12. WebSocketMUX
41-
13. PGM
42-
14. DCCP
43-
44-
Structural protocols:
45-
46-
1. Redirecting to/from file.
47-
2. Combining two unidirectional protocols into one bi-directional
48-
3. Splitting bi-directional protocol into two uni-directional
49-
3. Throttler (both for bytestreams and messages)
1+
**Dsock: Socket library for libdill**

abi_version.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
2121
# IN THE SOFTWARE.
2222

23-
if [ ! -f dillsocks.h ]; then
24-
echo "abi_version.sh: error: dillsocks.h does not exist" 1>&2
23+
if [ ! -f dsock.h ]; then
24+
echo "abi_version.sh: error: dsock.h does not exist" 1>&2
2525
exit 1
2626
fi
2727

28-
CURRENT=`egrep '^#define +DILLSOCKS_VERSION_CURRENT +[0-9]+$' dillsocks.h`
29-
REVISION=`egrep '^#define +DILLSOCKS_VERSION_REVISION +[0-9]+$' dillsocks.h`
30-
AGE=`egrep '^#define +DILLSOCKS_VERSION_AGE +[0-9]+$' dillsocks.h`
28+
CURRENT=`egrep '^#define +DSOCK_VERSION_CURRENT +[0-9]+$' dsock.h`
29+
REVISION=`egrep '^#define +DSOCK_VERSION_REVISION +[0-9]+$' dsock.h`
30+
AGE=`egrep '^#define +DSOCK_VERSION_AGE +[0-9]+$' dsock.h`
3131

3232
if [ -z "$CURRENT" -o -z "$REVISION" -o -z "$AGE" ]; then
33-
echo "abi_version.sh: error: could not extract version from dillsocks.h" 1>&2
33+
echo "abi_version.sh: error: could not extract version from dsock.h" 1>&2
3434
exit 1
3535
fi
3636

bsock.c

Lines changed: 0 additions & 116 deletions
This file was deleted.

configure.ac

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
AC_PREREQ([2.53])
2828

29-
AC_INIT([dillsocks], [m4_esyscmd([./package_version.sh])],
30-
[[email protected]], [dillsocks], [http://libdill.org/])
31-
AC_CONFIG_SRCDIR([dillsocks.pc.in])
29+
AC_INIT([dsock], [m4_esyscmd([./package_version.sh])],
30+
[[email protected]], [dsock], [http://libdill.org/])
31+
AC_CONFIG_SRCDIR([dsock.pc.in])
3232
AM_INIT_AUTOMAKE([1.6 foreign subdir-objects tar-ustar])
3333
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
3434

@@ -41,16 +41,16 @@ AC_CANONICAL_HOST
4141
AC_PROG_SED
4242
AC_PROG_AWK
4343

44-
DILLSOCKS_ABI_VERSION=m4_esyscmd([./abi_version.sh])
45-
DILLSOCKS_PACKAGE_VERSION=m4_esyscmd([./package_version.sh])
46-
DILLSOCKS_LIBTOOL_VERSION=m4_esyscmd([./abi_version.sh -libtool])
44+
DSOCK_ABI_VERSION=m4_esyscmd([./abi_version.sh])
45+
DSOCK_PACKAGE_VERSION=m4_esyscmd([./package_version.sh])
46+
DSOCK_LIBTOOL_VERSION=m4_esyscmd([./abi_version.sh -libtool])
4747

48-
AC_SUBST(DILLSOCKS_ABI_VERSION)
49-
AC_SUBST(DILLSOCKS_PACKAGE_VERSION)
50-
AC_SUBST(DILLSOCKS_LIBTOOL_VERSION)
48+
AC_SUBST(DSOCK_ABI_VERSION)
49+
AC_SUBST(DSOCK_PACKAGE_VERSION)
50+
AC_SUBST(DSOCK_LIBTOOL_VERSION)
5151

52-
AC_MSG_NOTICE([Millsocks package version: $DILLSOCKS_PACKAGE_VERSION])
53-
AC_MSG_NOTICE([Millsocks ABI version: $DILLSOCKS_ABI_VERSION])
52+
AC_MSG_NOTICE([Millsocks package version: $DSOCK_PACKAGE_VERSION])
53+
AC_MSG_NOTICE([Millsocks ABI version: $DSOCK_ABI_VERSION])
5454

5555
################################################################################
5656
# Check the compilers. #
@@ -93,6 +93,6 @@ LT_INIT
9393

9494
AC_CONFIG_MACRO_DIR([m4])
9595

96-
AC_OUTPUT([Makefile dillsocks.pc])
96+
AC_OUTPUT([Makefile dsock.pc])
9797
cp confdefs.h config.h
9898

dbuf.c

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)