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)
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
More verbose logging and added some TODOs. a27014689701b1dd3d0e3c02629d3c7dd0edc77e Catalin(ux) M. BOIE 2010-06-07 20:24:43
Added Conn_[io]qlen and obsoleted Conn_qlen (ambiguous). be3822589afe052fade15fd81afee3549217131a Catalin(ux) M. BOIE 2010-06-07 20:23:39
Use u32 field of epoll. ptr on 64bit gave an warning. 37c86810ceaadd0c8139f11e3737577efea4cabd Catalin(ux) M. BOIE 2010-06-07 19:46:15
Export CONN_VERSION in Conn_config.h d34d7a1da235b00c3aa1c8e0494310c4dd100886 Catalin(ux) M. BOIE 2010-06-07 19:45:53
In Conn_poll_cb, show human readable events. a3e305582e9bf1185254f8feeab90c51af626443 Catalin(ux) M. BOIE 2010-06-07 17:22:49
Cosmetic logs. 937e40b54fabf19d7ed2102c104585bea0181634 Catalin(ux) M. BOIE 2010-06-07 17:22:25
Export Conn_poll_status. 8d6e2e96bd8e7a34a239533edb7484d78de69995 Catalin(ux) M. BOIE 2010-06-07 17:21:57
Bump up the version to 1.0.31. 4a307965c1f3b1449e98c7487a8e98538d237a23 Catalin(ux) M. BOIE 2010-05-30 19:22:27
On accept() set IN+OUT flags to speed up the sending (skip an epoll_wait). 843d55ea6c8360f4f435288cd68183029e4c06e4 Catalin(ux) M. BOIE 2010-05-06 17:10:14
Use accept4 to skip an extra fcntl call! 3eda4a8ac828035e4205dbe13e60fa39b6d8b2c6 Catalin(ux) M. BOIE 2010-05-06 17:09:54
If the socket is in closing phase, do not change events. 57e97028a524ab257bc8216c5a2da7381cc0d050 Catalin(ux) M. BOIE 2010-05-06 17:02:27
Avoid doing epoll_ctl using a cache. 9bc66cd209921998195b25c2f296fd0516a1ddbb Catalin(ux) M. BOIE 2010-05-06 16:53:13
Do not call gerpeername and getsockname at every accept/connect. Do it only when needed. d2505dbca77358b6ed67394e09904b525ea517e6 Catalin(ux) M. BOIE 2010-05-06 16:38:40
Simplified setting NONBLOCK in Conn_setnonblock. 18d93d4daf5182e2c2749be05f7bbd43bb18bb18 Catalin(ux) M. BOIE 2010-05-06 16:13:34
strstr should not use case sensitive when searching for \n. 50658544213ff74d0e03625c5e3fae0eadba73ad Catalin(ux) M. BOIE 2010-05-06 16:11:06
Grow receiving buffer with Conn_default_ibuf instead of 0! Stupid! f663a98fc5db5f64a4ed7bf9a37ae5a1a708ac3c Catalin(ux) M. BOIE 2010-05-06 16:10:13
Use fd -1 to signal that the socket is closed. 66c44cbeb5672fae1bea46260adbae06a3562d88 Catalin(ux) M. BOIE 2010-05-06 16:08:59
Commit 47643b30ea900240e821983c89eb1f806f91c6ea - Conn_{addr,port}_{local,remote} functions added.
Signed-off-by: Catalin(ux) M. BOIE <catab@embedromix.ro>
Author: Catalin(ux) M. BOIE
Author date (UTC): 2010-06-08 15:03
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2010-06-11 09:04
Parent(s): 6d018b014156ada0bf1a138ac2178386f6bb90ab
Signer:
Signing key:
Signing status: N
Tree: ed69dc84957c99420b6d096df923dc1ccab892f8
File Lines added Lines deleted
Conn_engine_core.c 40 0
Conn_engine_core.h 5 0
File Conn_engine_core.c changed (mode: 100644) (index 3d4075f..5f0ec62)
... ... int Conn_set_address(struct Conn *C, const int flags)
1204 1204 return 0; return 0;
1205 1205 } }
1206 1206
1207 /*
1208 * Returns local address
1209 */
1210 char *Conn_addr_local(struct Conn *C)
1211 {
1212 Conn_set_address(C, 0);
1213
1214 return C->bind_addr;
1215 }
1216
1217 /*
1218 * Returns remote address
1219 */
1220 char *Conn_addr_remote(struct Conn *C)
1221 {
1222 Conn_set_address(C, 1);
1223
1224 return C->addr;
1225 }
1226
1227 /*
1228 * Returns local port
1229 */
1230 int Conn_port_local(struct Conn *C)
1231 {
1232 Conn_set_address(C, 0);
1233
1234 return C->bind_port;
1235 }
1236
1237 /*
1238 * Returns remote port
1239 */
1240 int Conn_port_remote(struct Conn *C)
1241 {
1242 Conn_set_address(C, 1);
1243
1244 return C->port;
1245 }
1246
1207 1247 /* /*
1208 1248 * Returns the address family for address stored in @addr. * Returns the address family for address stored in @addr.
1209 1249 */ */
File Conn_engine_core.h changed (mode: 100644) (index 50b3e48..628ae56)
... ... extern void Conn_stop(void);
328 328
329 329 extern int Conn_set_address(struct Conn *C, const int flags); extern int Conn_set_address(struct Conn *C, const int flags);
330 330
331 extern char *Conn_addr_local(struct Conn *C);
332 extern char *Conn_addr_remote(struct Conn *C);
333 extern int Conn_port_local(struct Conn *C);
334 extern int Conn_port_remote(struct Conn *C);
335
331 336 /* queue stuff */ /* queue stuff */
332 337 extern void Conn_queue_init(struct Conn_queue *q); extern void Conn_queue_init(struct Conn_queue *q);
333 338 extern int Conn_queue_add(struct Conn_queue *q, extern int Conn_queue_add(struct Conn_queue *q,
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