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)
Fixed a use of an uninit variable! Oops! 381473f2077d895d5064f1ea2e82d5a215ad5770 Catalin(ux) M. BOIE 2009-05-20 14:28:24
Bump up the version to 1.0.20. 2270d4d69a1479a68c61c908bb2e421984f2d785 Catalin(ux) M. BOIE 2009-05-20 14:10:52
Fixed an underflow in Conn_rtrim. Oops! dd361465e5f31adcc337b4eca9ebeec6c1713c42 Catalin(ux) M. BOIE 2009-05-20 14:10:28
Missed a '('. Oops! 920f9fda5fecd14e1cfcdb8bd66164f3bd215b93 Catalin(ux) M. BOIE 2009-05-20 14:05:59
Try harder to respect the trigger interval; in the start fire after interval. e7e5a52e7a6b7ad59da38bf660269e025f10ade4 Catalin(ux) M. BOIE 2009-05-06 11:19:09
Bump up the version. e3723ad356330457959f6d9100be81d7eaacc57d Catalin(ux) M. BOIE 2009-04-17 14:33:30
Added reconnect executable to .gitignore. 585adaa455a4ab751733bd872faf10c97a880d17 Catalin(ux) M. BOIE 2009-04-17 14:33:06
Made the server example (s.c) nicer and did more error checking. 519cf83b2d28bee0d3bb25bbc962b3ef5677ee92 Catalin(ux) M. BOIE 2009-04-17 14:32:07
Added a reconnect example. 59b8156a8c5d17c90b5b064b1e1043b365ddac0a Catalin(ux) M. BOIE 2009-04-17 14:31:47
Show a nicer value if the reconnect feat was never used. f51cf254286f76721e517eb69aa00695bdb3b2f5 Catalin(ux) M. BOIE 2009-04-17 14:30:59
Reget the time, even if no events. Else, the expiration will not work. a1167cc19d739d62d6a21fd238c701c60a64cf6d Catalin(ux) M. BOIE 2009-04-17 14:12:57
Be more verbose and show also the flags. 377f288df5d1fbde5c14276e8256fb88216d8761 Catalin(ux) M. BOIE 2009-04-17 13:01:59
Changed split test to show that we can get past 4096 limit. 8ae8fefc1f2d19dbc893a95818ecadcc5c3014e0 Catalin(ux) M. BOIE 2009-04-17 12:46:03
Improved Conn_split (and remove the limitation to 4096 'right' value. ec46e3c94da65fe94ed109727fd3dcb50384a44e Catalin(ux) M. BOIE 2009-04-17 12:31:53
Removed an unsused variable. 1fa664bac9482c6e053bb3ea1d06280b66dadfed Catalin(ux) M. BOIE 2009-04-17 12:04:46
Simplified expand_buf and also fixed an out-of-bounds wrinting. a2a507f235f7847277c2a485af8efb8efaa1ffa7 Catalin(ux) M. BOIE 2009-04-17 12:03:34
Bump up the version. b720ca953940baf51a3e8263e6ec5d397a1c1ff2 Catalin(ux) M. BOIE 2009-04-14 12:39:01
Fixed Conn_rtrim. 5f12cd953b0b998db8530eaed30b91bb181b7b26 Catalin(ux) M. BOIE 2009-04-14 12:38:39
Really fixed Conn_split_get. 5ab1e0a47574fc6776e014be3d8150a048866607 Catalin(ux) M. BOIE 2009-04-14 08:34:38
Added Conn_alphanum (test if a string is alpha numeric or not). 0bb8d19eed947aa82640610a0d894141e466105a Catalin(ux) M. BOIE 2009-04-14 08:22:02
Commit 381473f2077d895d5064f1ea2e82d5a215ad5770 - Fixed a use of an uninit variable! Oops!
Author: Catalin(ux) M. BOIE
Author date (UTC): 2009-05-20 14:28
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2009-05-20 14:28
Parent(s): 2270d4d69a1479a68c61c908bb2e421984f2d785
Signing key:
Tree: ea652466eaab519fa9d178c5daae5ae4212cb67b
File Lines added Lines deleted
Conn_engine_core.c 1 2
tests/t3.c 9 1
File Conn_engine_core.c changed (mode: 100644) (index a160694..4174c2d)
... ... struct Conn_split *Conn_split(const char *line0)
1044 1044 struct Conn_split_cell *q; struct Conn_split_cell *q;
1045 1045 unsigned int i; unsigned int i;
1046 1046 char search_for; char search_for;
1047 char *line;
1048 1047 char *left, *right; char *left, *right;
1049 1048 unsigned int right_len; unsigned int right_len;
1050 1049
 
... ... struct Conn_split *Conn_split(const char *line0)
1062 1061 goto free_ret; goto free_ret;
1063 1062 } }
1064 1063
1065 Conn_rtrim(line, "\r\n \t");
1064 Conn_rtrim(ret->line, "\r\n \t");
1066 1065
1067 1066 /* do the spliting */ /* do the spliting */
1068 1067 p = ret->line; p = ret->line;
File tests/t3.c changed (mode: 100644) (index c6a7117..9832afc)
... ... int main(void)
9 9 char x[128]; char x[128];
10 10
11 11 strcpy(x, "\n"); strcpy(x, "\n");
12 Conn_rtrim(x, "\n\t \r");
13 if (strcmp(x, "LOAD") != 0)
14 return 1;
12 15
16 strcpy(x, "PORT addr=213.206.96.100 port=443\n");
13 17 Conn_rtrim(x, "\n\t \r"); Conn_rtrim(x, "\n\t \r");
18 if (strcmp(x, "PORT addr=213.206.96.100 port=443") != 0)
19 return 1;
14 20
15 if (strcmp(x, "LOAD") != 0)
21 strcpy(x, "");
22 Conn_rtrim(x, "\n\t \r");
23 if (strcmp(x, "") != 0)
16 24 return 1; return 1;
17 25
18 26 return 0; return 0;
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