catalinux / Conn (public) (License: LGPLv2) (since 2016-03-01) (hash sha1)
Net library for easy building ipv4/ipv6 network daemons/clients
List of commits:
Subject Hash Author Date (UTC)
Switch licence to LGPLv3+; Do not stupidly close master socket. d3b1c4ccd591627e7faa0eeaaa3b2bc1ee20709e Catalin(ux) M. BOIE 2013-08-14 04:09:36
Duilder fixes. Removed -O0. Fixed spec file. d8a03dced52e918b6f66a05dfd64a3c75c07c91b Catalin(ux) M. BOIE 2011-12-14 09:12:55
Fixed a stupid logging bug (invalid number of parameters). e7d4c38d0130a142ac6c409c63d63201d2af08e2 Catalin(ux) M. BOIE 2010-12-22 16:46:47
Ignore all Changelog files. fa45b63d3db958228f44bcb3d6431d60f94d1147 Catalin(ux) M. BOIE 2010-12-22 16:46:16
Added mailmap file. a57dcfd6bdf6c8c86161cf7ce3fff942a714a2b9 Catalin(ux) M. BOIE 2010-12-22 16:46:04
Be more verbose in try_expand_buf and error out connection when cannot expand. e95ac8d7e5015958d3594862c6183b63bab80d4a Catalin(ux) M. BOIE 2010-09-30 20:58:08
Ignore xbind1 compiled example. 089b68cf9fc5c16ee7d8136b28a52ec4dd139c78 Catalin(ux) M. BOIE 2010-08-23 19:42:01
Removed direct access to Conn structure in s.c example. f6215273602571ef2c98479bdba930ebe312cbc9 Catalin(ux) M. BOIE 2010-08-23 19:38:33
Bumped the version to 1.0.32. f158fca2cf9f3285ae761cd4ce30b01911b84385 Catalin(ux) M. BOIE 2010-06-23 21:30:47
The cache for epoll_ctl, has to take also the slot in consideration. ed378c16927c707feee481b2cd0ea7fbdf257d9d Catalin(ux) M. BOIE 2010-06-09 19:18:03
After calling getsockname, set cache as clean. 199f0fd96b064fd1e63f5773b1e7ab58e7d91303 Catalin(ux) M. BOIE 2010-06-08 18:30:20
Do not try to call getsockname if connection is not opened. e9853b5b5a01df3c5e07f6fe4607a68fd7181b39 Catalin(ux) M. BOIE 2010-06-08 18:28:49
Supports kernels below 2.6.9 (epoll_ctl). 97919a022fae39bdefc3f7e4c50526fb473dfd34 Catalin(ux) M. BOIE 2010-06-08 18:06:35
Cosmetic logging. ad806920255f8ca5f9281b6b6a3a53edf2d5088f Catalin(ux) M. BOIE 2010-06-08 17:35:45
When generating one line of slot status, do not append \n. 20ed77b4bf5909ded12cd225753a8858d8941792 Catalin(ux) M. BOIE 2010-06-08 15:57:16
Indented Conn_poll_cb to better watch logs. 58d734a8895b03eb17724eefe37e862c9665fb2c Catalin(ux) M. BOIE 2010-06-08 15:52:44
If we have POLLOUT set and the queue is empty, do not call recv function. 2f3b266eea11dea7c28f1c24b615f667585a215e Catalin(ux) M. BOIE 2010-06-08 15:27:40
Conn_{addr,port}_{local,remote} functions added. 47643b30ea900240e821983c89eb1f806f91c6ea Catalin(ux) M. BOIE 2010-06-08 15:03:52
Wrong cache consulted! 6d018b014156ada0bf1a138ac2178386f6bb90ab Catalin(ux) M. BOIE 2010-06-08 15:03:34
If slot is in FREE state and we get events, do not abort, but log an error. 52301f684bb4a49fd74556f8b15fee643c4bfb06 Catalin(ux) M. BOIE 2010-06-07 20:25:21
Commit d3b1c4ccd591627e7faa0eeaaa3b2bc1ee20709e - Switch licence to LGPLv3+; Do not stupidly close master socket.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2013-08-14 04:09
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2013-08-14 04:09
Parent(s): d8a03dced52e918b6f66a05dfd64a3c75c07c91b
Signing key:
Tree: d19713fc8d7c45fd84533082ba095f1ea2810071
File Lines added Lines deleted
.gitignore 2 0
Conn.c 6 1
Conn.spec.in 11 6
Makefile.in 2 2
TODO 1 0
File .gitignore changed (mode: 100644) (index fcdb6d9..2e97920)
... ... Conn_config.h
8 8 *.so.* *.so.*
9 9 *.log *.log
10 10 duilder_release duilder_release
11 *.out
12
File Conn.c changed (mode: 100644) (index c869715..bee2aa8)
... ... static void Conn_accept(const unsigned int slot)
833 833 /* TODO: ratelimit */ /* TODO: ratelimit */
834 834 Log(9, "WARN: Cannot accept on fd %d [%s].\n", Log(9, "WARN: Cannot accept on fd %d [%s].\n",
835 835 Conns[slot].fd, strerror(errno)); Conns[slot].fd, strerror(errno));
836 Conn_error_raise(slot, errno);
836 /*
837 * We must not raise an error here because we will close the
838 * master socket!
839 * TODO: We should signal it as a warning.
840 */
841 /* Conn_error_raise(slot, errno); */
837 842 return; return;
838 843 } }
839 844
File Conn.spec.in changed (mode: 100644) (index b5f017e..3e3dff5)
... ... Summary: Connection manager
2 2 Name: @PRJ@ Name: @PRJ@
3 3 Version: @VER@ Version: @VER@
4 4 Release: @REV@ Release: @REV@
5 License: LGPL
6 Group: Applications/Network
5 License: LGPLv3+
6 Group: Applications/Internet
7 7 Source: http://kernel.embedromix.ro/us/Conn/%{name}-%{version}.tar.gz Source: http://kernel.embedromix.ro/us/Conn/%{name}-%{version}.tar.gz
8 8 URL: http://kernel.embedromix.ro/us/ URL: http://kernel.embedromix.ro/us/
9 Packager: Catalin(ux) M BOIE <catab@embedromix.ro>
10 9 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
11 10
11 %global _hardened_build 1
12 12
13 13 %description %description
14 14 Small library for easy building client/server daemons. Small library for easy building client/server daemons.
15 15
16 16 %prep %prep
17 %setup
17 %setup -q
18 18
19 19 %build %build
20 20 %configure %configure
 
... ... rm -rf ${RPM_BUILD_ROOT}
34 34
35 35 %files %files
36 36 %attr (-,root,root) %attr (-,root,root)
37 @USR_INCLUDE@/*
38 @USR_LIB@/*
37 %{_includedir}/*
38 %{_libdir}/libConn.so
39 %{_libdir}/libConn.so.@VER@
39 40 %doc README Changelog examples INSTALL %doc README Changelog examples INSTALL
41
42 %changelog
43 * Wed Dec 14 2011 Catalin(ux) M. BOIE <catab at embedromix dot ro> 1.0.32
44 Minor fixes.
File Makefile.in changed (mode: 100644) (index 9c3a15a..3dca4a4)
... ... export CFLAGS += -ggdb3 -Wall -Wextra -pedantic -Wno-long-long -pipe -fpic
5 5 export OBJS += Conn_engine_core.o Conn_engine_poll.o Conn_engine_epoll.o Conn.o export OBJS += Conn_engine_core.o Conn_engine_poll.o Conn_engine_epoll.o Conn.o
6 6
7 7 .PHONY: all .PHONY: all
8 all: libConn.so.@VER@ libConn.a
8 all: libConn.so.@VER@
9 9
10 10
11 11 Conn_engine_core.o: Conn_engine_core.c Conn_engine_core.h Conn_config.h Conn_engine_core.o: Conn_engine_core.c Conn_engine_core.h Conn_config.h
 
... ... clean:
50 50
51 51 install: all install: all
52 52 @mkdir -p $(I_USR_LIB) @mkdir -p $(I_USR_LIB)
53 @cp -vd libConn* $(I_USR_LIB)
53 @cp -vd libConn.so* $(I_USR_LIB)
54 54 @mkdir -p $(I_USR_INC) @mkdir -p $(I_USR_INC)
55 55 @cp -vd *.h $(I_USR_INC) @cp -vd *.h $(I_USR_INC)
File TODO changed (mode: 100644) (index f974536..21c1e62)
10 10 [ ] [ ]
11 11
12 12 == LOW PRIORITY == == LOW PRIORITY ==
13 [ ] See http://highscalability.com/blog/2012/9/10/russ-10-ingredient-recipe-for-making-1-million-tps-on-5k-har.html
13 14 [ ] Dump all memory statistics [ ] Dump all memory statistics
14 15 [ ] SCTP [ ] SCTP
15 16 [ ] .error_state -> error_type [ ] .error_state -> error_type
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/Conn

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/Conn

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/Conn

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main