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)
Reverse the meaning of Conn_split_get_e and Conn_split_get. 836229353a26ecc1bac762ece6cf42319113f5b1 Catalin(ux) M. BOIE 2009-04-14 08:21:35
Before calling callback in Conn_for_every_line, just trim '\r'. 51e532893e74c4bee9b6847732442536e79eb2a0 Catalin(ux) M. BOIE 2009-04-14 06:39:29
Added Conn_rtrim function. c37737a16e3d9de95cf659bae546de8808a3e3ed Catalin(ux) M. BOIE 2009-04-14 06:26:16
Revert "Conn_get_line removes also '\r' now." 9d56ef9813225fe1127a2d5800c124aa65d5e1d2 Catalin(ux) M. BOIE 2009-04-14 06:20:50
Changed Conn_split to not modify original line. 2f0d734f54b243356d0d4468691af50aad9e667a Catalin(ux) M. BOIE 2009-04-14 06:00:26
Added Conn_split_get_ull (unsigned long long). 735e92324db56d5e9875f4e123102fc1e995cb4d Catalin(ux) M. BOIE 2009-04-13 22:13:04
Conn_get_line removes also '\r' now. c1e5a9915b3ae6196a68fb1e7f73f295bef1737c Catalin(ux) M. BOIE 2009-04-13 21:56:47
Re-export Conn_get lost somehow. 293f7aaed4f39de54821c8863023adb0e00234ac Catalin(ux) M. BOIE 2009-04-13 21:33:19
Bump the version. d74d67d1327c8873c715906feeb8b4f053fff70b Catalin(ux) M. BOIE 2009-03-17 13:07:01
Added splitting functions. It gets easier to write ascii line client/server app. 48e73f48d8c264e944dfd211e926ca3ad8f879d6 Catalin(ux) M. BOIE 2009-03-17 13:06:19
Do not build examples by default. 9dafc6232f426f361047a1836832e2c97823d14c Catalin(ux) M. BOIE 2009-03-17 09:59:14
Bump up the version. 47a4be6a1ae721a7b9d0e07db5a288985163758c Catalin(ux) M. BOIE 2009-03-17 09:01:10
Added Conn_addr_info - check what family an address is. 10087d1dec5592e4a5396df09aade7d963cf1ea4 Catalin(ux) M. BOIE 2009-03-17 08:55:47
Bump up the version. 4ce4f82faa025d9a386538d1db5d74a443baf62a Catalin(ux) M. BOIE 2009-03-10 09:22:37
Do not try to close free state slots. f17b6d92d668f72de10967ae9178131916db64c8 Catalin(ux) M. BOIE 2009-03-09 10:29:35
TODO: More entries added (timer optimization). 0b0be1574b15e7dae4b7dca9f02f0ff78bc02136 Catalin(ux) M. BOIE 2009-03-09 10:27:37
Raised debug level for compacting phase. d610f3d45075311f9f21c7c122dfefa773c48a64 Catalin(ux) M. BOIE 2009-03-09 10:17:41
Bump up the version. b8a55af5786f74ea38e5929af347cfc79f0d3dfd Catalin(ux) M. BOIE 2009-03-09 10:14:10
Moved free_intern in the periodic scanning to not miss connections in listen. 5fb989866b1ceb68e64e62e035610c40cf519c03 Catalin(ux) M. BOIE 2009-03-09 10:05:03
More clear logging. 3599fc41cce9bd25e5461d0c4350780f4dbc64a6 Catalin(ux) M. BOIE 2009-03-09 10:04:47
Commit 836229353a26ecc1bac762ece6cf42319113f5b1 - Reverse the meaning of Conn_split_get_e and Conn_split_get.
Signed-off-by: Catalin(ux) M. BOIE <catab@embedromix.ro>
Author: Catalin(ux) M. BOIE
Author date (UTC): 2009-04-14 08:21
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2009-04-14 12:47
Parent(s): 51e532893e74c4bee9b6847732442536e79eb2a0
Signing key:
Tree: 5499c4358ffdd068998b50fe1be164991131c96c
File Lines added Lines deleted
Conn_engine_core.c 4 4
Conn_engine_core.h 2 2
File Conn_engine_core.c changed (mode: 100644) (index 6ebf628..5601c7e)
... ... char *Conn_split_get_size(const struct Conn_split *s, const char *l,
1120 1120 /* /*
1121 1121 * Search for a string and return the value * Search for a string and return the value
1122 1122 */ */
1123 char *Conn_split_get(const struct Conn_split *s, const char *l)
1123 char *Conn_split_get_e(const struct Conn_split *s, const char *l)
1124 1124 { {
1125 1125 return Conn_split_get_size(s, l, NULL); return Conn_split_get_size(s, l, NULL);
1126 1126 } }
 
... ... char *Conn_split_get(const struct Conn_split *s, const char *l)
1128 1128 /* /*
1129 1129 * Search for a string and return the value or "" if not found * Search for a string and return the value or "" if not found
1130 1130 */ */
1131 char *Conn_split_get_e(const struct Conn_split *s, const char *l,
1131 char *Conn_split_get(const struct Conn_split *s, const char *l,
1132 1132 unsigned int *size) unsigned int *size)
1133 1133 { {
1134 1134 char *r; char *r;
 
... ... unsigned long Conn_split_get_ul(const struct Conn_split *s, const char *l,
1149 1149 char *r; char *r;
1150 1150 unsigned long ret = 0; unsigned long ret = 0;
1151 1151
1152 r = Conn_split_get(s, l);
1152 r = Conn_split_get_e(s, l);
1153 1153 if (r) if (r)
1154 1154 ret = strtoul(r, NULL, base); ret = strtoul(r, NULL, base);
1155 1155
 
... ... unsigned long long Conn_split_get_ull(const struct Conn_split *s, const char *l,
1165 1165 char *r; char *r;
1166 1166 unsigned long long ret = 0; unsigned long long ret = 0;
1167 1167
1168 r = Conn_split_get(s, l);
1168 r = Conn_split_get_e(s, l);
1169 1169 if (r) if (r)
1170 1170 ret = strtoull(r, NULL, base); ret = strtoull(r, NULL, base);
1171 1171
File Conn_engine_core.h changed (mode: 100644) (index 268914a..9c93f30)
... ... extern void Conn_rtrim(char *s, const char *chars);
303 303 extern struct Conn_split *Conn_split(const char *line); extern struct Conn_split *Conn_split(const char *line);
304 304 extern char *Conn_split_get_size(const struct Conn_split *s, extern char *Conn_split_get_size(const struct Conn_split *s,
305 305 const char *l, unsigned int *len); const char *l, unsigned int *len);
306 extern char *Conn_split_get(const struct Conn_split *s,
307 const char *l);
308 306 extern char *Conn_split_get_e(const struct Conn_split *s, extern char *Conn_split_get_e(const struct Conn_split *s,
307 const char *l);
308 extern char *Conn_split_get(const struct Conn_split *s,
309 309 const char *l, unsigned int *size); const char *l, unsigned int *size);
310 310 extern unsigned long Conn_split_get_ul(const struct Conn_split *s, extern unsigned long Conn_split_get_ul(const struct Conn_split *s,
311 311 const char *l, unsigned int base); const char *l, unsigned int base);
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