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)
Set start values for enums. f2d6b05dce0e058323101a4d6f159c0c4172941a Catalin(ux) M. BOIE 2009-08-31 20:52:41
Call close callback, even if state is ERROR. 58e96228277c188b7b072496e337be9c94f56eb1 Catalin(ux) M. BOIE 2009-08-31 20:52:17
Added Conn_work_to_do to signal when we can exit. 492d960bf3e5b3718fe69ffc8ef30fbe344a805f Catalin(ux) M. BOIE 2009-08-31 20:50:56
Splited reporting of error types. 2d28a3be0ebb1f5e3f548d2523ac591af7dee3b9 Catalin(ux) M. BOIE 2009-08-31 20:08:54
Conn_commit will return error, so, do not call error callback. c97f8be6cfd55c32d78e62a30375d7c014dc0e0a Catalin(ux) M. BOIE 2009-08-31 20:08:17
Cosmetic changes. 54a9e723c3a958e69f491b55df83f96b6814af44 Catalin(ux) M. BOIE 2009-08-31 20:07:51
Raised default listen para to 4096 from 128. somaxconn still has prio. af39935492f39786879ea6ced9f7dfe929c4879d Catalin(ux) M. BOIE 2009-08-31 19:56:36
Store in time_open the accept timestamp so Conn_lifetime will work on srv side. 0522d638872644d7bd6490027a7ae99b1fb4b16f Catalin(ux) M. BOIE 2009-08-31 19:55:44
Improved blackhole examples. 128f393aba2b07c4aa0e41d962a8239dffc3cc10 Catalin(ux) M. BOIE 2009-08-31 17:41:30
More entries to .gitignore. e1d71bcf46a9b61a4aa4e17b857ff9035d7fb6c7 Catalin(ux) M. BOIE 2009-08-31 17:39:45
Tweaked a little the debug level for some messages. 1a27a1acf2ede62fb02b074f232badeb847bfcb8 Catalin(ux) M. BOIE 2009-08-31 17:39:21
Added Conn_lifetime (returns the time in ms between connected state and now). 4e3f1aaabc21d4cbdac26e42612ebd0298c8d86e Catalin(ux) M. BOIE 2009-08-31 17:22:37
Added Conn_sys that logs some system variables related to network perf. af960f317b8ca9a8f78fe44e80ddbdb6a9483e6f Catalin(ux) M. BOIE 2009-08-31 16:36:00
Better output flags. d57a98c2b158aeb30530c2e5188977a40336a360 Catalin(ux) M. BOIE 2009-08-25 20:37:55
Improved examples. 75439293c1d067327e606d72ec6290b43110bf24 Catalin(ux) M. BOIE 2009-08-25 20:37:29
Removed line1.c because duplicates code. 1119059afacde8d0b7b7dab77850dd6b71684190 Catalin(ux) M. BOIE 2009-08-25 20:11:52
Removed *.run becasue we have a generic run script. 007083cd9d1abefe4dd73e65c9026a2607fbcd4e Catalin(ux) M. BOIE 2009-08-25 20:09:00
Removed bind_s example because blackhole_s will take place. b9b06d98f00413b5a5df9d7bc9b3bd05b5536f28 Catalin(ux) M. BOIE 2009-08-25 20:07:38
Added Conn_set_address helper. 1b6e7e8a294ac88aa966e4e43bb77a4fdff0ca5a Catalin(ux) M. BOIE 2009-08-25 19:21:00
Fixed storing of local address (do not overwrite remote address). d431edba6699d1363e4d616aa6f96588272188b0 Catalin(ux) M. BOIE 2009-08-25 18:37:55
Commit f2d6b05dce0e058323101a4d6f159c0c4172941a - Set start values for enums.
Signed-off-by: Catalin(ux) M. BOIE <catab@embedromix.ro>
Author: Catalin(ux) M. BOIE
Author date (UTC): 2009-08-31 20:52
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2009-09-02 15:42
Parent(s): 58e96228277c188b7b072496e337be9c94f56eb1
Signing key:
Tree: 27093841e9e8ed11a19320776e6273f32909877a
File Lines added Lines deleted
Conn_engine_core.h 7 9
File Conn_engine_core.h changed (mode: 100644) (index bf5b921..94b3b4c)
... ... enum {
36 36
37 37 /* state */ /* state */
38 38 enum { enum {
39 CONN_STATE_FREE,
39 CONN_STATE_FREE = 0,
40 40 CONN_STATE_EMPTY, CONN_STATE_EMPTY,
41 41 CONN_STATE_OPEN, CONN_STATE_OPEN,
42 42 CONN_STATE_LISTEN, CONN_STATE_LISTEN,
 
... ... enum {
48 48
49 49 /* error kind */ /* error kind */
50 50 enum { enum {
51 CONN_ERROR_NO_ERROR,
51 CONN_ERROR_NO_ERROR = 0,
52 52 CONN_ERROR_USERREQ, /* user requested the close */ CONN_ERROR_USERREQ, /* user requested the close */
53 53 CONN_ERROR_POLL, CONN_ERROR_POLL,
54 54 CONN_ERROR_RECV, CONN_ERROR_RECV,
 
... ... enum {
57 57 CONN_ERROR_HANGUP, CONN_ERROR_HANGUP,
58 58 CONN_ERROR_GETADDRINFO, CONN_ERROR_GETADDRINFO,
59 59 CONN_ERROR_EXPIRED, CONN_ERROR_EXPIRED,
60 CONN_ERROR_ACCEPT, /* This is free TODO: check! */
61 CONN_ERROR_MEM,
60 CONN_ERROR_ACCEPT, /* This is free. TODO: check! */
61 CONN_ERROR_MEM,
62 62 CONN_ERROR_CONNECT, CONN_ERROR_CONNECT,
63 63 CONN_ERROR_READ_TIMEOUT, CONN_ERROR_READ_TIMEOUT,
64 64 CONN_ERROR_CONN_TIMEOUT, CONN_ERROR_CONN_TIMEOUT,
 
... ... enum {
71 71
72 72 /* Parameters */ /* Parameters */
73 73 enum { enum {
74 CONN_PARA_START,
75 CONN_PARA_AUTO_RECONNECT,
74 CONN_PARA_AUTO_RECONNECT = 0,
76 75 CONN_PARA_RECONNECT_DELAY, CONN_PARA_RECONNECT_DELAY,
77 76 CONN_PARA_IDLE_TIME, CONN_PARA_IDLE_TIME,
78 77 CONN_PARA_READ_TIMEOUT, CONN_PARA_READ_TIMEOUT,
 
... ... enum {
84 83
85 84 /* Callbacks */ /* Callbacks */
86 85 enum { enum {
87 CONN_CB_START,
88 CONN_CB_ACCEPT,
86 CONN_CB_ACCEPT = 0,
89 87 CONN_CB_RECV, CONN_CB_RECV,
90 88 CONN_CB_SEND, CONN_CB_SEND,
91 89 CONN_CB_DATA, CONN_CB_DATA,
 
... ... enum {
98 96
99 97 /* Engine type */ /* Engine type */
100 98 enum { enum {
101 CONN_ENGINE_POLL,
99 CONN_ENGINE_POLL = 1,
102 100 CONN_ENGINE_EPOLL CONN_ENGINE_EPOLL
103 101 }; };
104 102
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