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)
Replaced Conn_protocol with Conn_get_socket_protocol. a1cbc5c612d82e6d1341524c67fe249648c81806 Catalin(ux) M. BOIE 2009-08-25 18:16:45
Compressed a little the POLL flags. 47b5dce395694c18c973e3ce6ba9a71c690a41bc Catalin(ux) M. BOIE 2009-08-25 18:16:16
Store also local address for incoming connections. 0548ce6434185cdd36e110c61315b4cb21849666 Catalin(ux) M. BOIE 2009-08-25 18:15:46
Added possibility to shutdown blackhole_s server by typing 'quit'. 5fd60900809e1a2d7554aa7fa93ce83b29214de0 Catalin(ux) M. BOIE 2009-08-25 17:54:27
Cosmetic changes. 7099dd49a270b9f4ecc0cb2e55254bef671202e5 Catalin(ux) M. BOIE 2009-08-25 17:54:15
Improved status output. 1ff597059bbb208b56ad18bf8324fae5b63950a2 Catalin(ux) M. BOIE 2009-08-25 17:53:44
Conn_type_* becomes CONN_TYPE_*. b284a20cc5430042cc662edc4d121c7f18cb3569 Catalin(ux) M. BOIE 2009-08-25 17:52:51
Improved status logging. 54fea00d8f16127244fd15b209c24f606adb20b3 Catalin(ux) M. BOIE 2009-08-25 17:33:14
Added Conn_strcasestr for case insensitive search in buffer. ca14b37b2a1f23887ad12fed729a3dd0ff253443 Catalin(ux) M. BOIE 2009-08-24 17:18:24
Improved ntime example. b63de9b82ffab1c0d759571a40f1d72f9b8df927 Catalin(ux) M. BOIE 2009-08-24 17:09:21
Removed unused includes. 8af81a4c311caa7d738000a5208d01d7620d1040 Catalin(ux) M. BOIE 2009-08-21 18:57:33
Improved blackhole example. 2fd7ff181a412f4ba060b0e89b97acdf89a8fb88 Catalin(ux) M. BOIE 2009-08-21 18:03:22
Fixed connections to outside. Still, it is a little mess there. 417ccd4a48508a810377676658d51c5103168472 Catalin(ux) M. BOIE 2009-08-21 17:42:37
addr and bind_addr are not pointers! Corrected them. e1deeb765500ee079802c2cd6543f9c9496d8f9b Catalin(ux) M. BOIE 2009-08-21 16:49:24
Exported _alloc and _commit functions. 9a3159e89eff020cfb75b9eec49a45a637a6da57 Catalin(ux) M. BOIE 2009-08-21 16:39:27
Added blackhole example. 8a7ac49b018ad65ba386f8a50725745127b4cbd2 Catalin(ux) M. BOIE 2009-08-21 15:54:55
TODO in/out. fdcfbf9e18ed5fbe0135b9aa702e09432fa71e93 Catalin(ux) M. BOIE 2009-08-21 15:53:05
First chunk of generic socket handling. b9a488ba615c4322b5d116a29919f11fd476b200 Catalin(ux) M. BOIE 2009-08-21 15:50:45
Added ntime example (returns CLOCK_REALTIME as fast as it can). e2fa318caf3e9aea09a853ab2b4af4b5a2cc8261 Catalin(ux) M. BOIE 2009-08-20 15:41:20
TODO ins and outs. 66a987be5d8e08ef6fe1ce0c056b8c3acd65bdb7 Catalin(ux) M. BOIE 2009-08-20 15:36:14
Commit a1cbc5c612d82e6d1341524c67fe249648c81806 - Replaced Conn_protocol with Conn_get_socket_protocol.
Signed-off-by: Catalin(ux) M. BOIE <catab@embedromix.ro>
Author: Catalin(ux) M. BOIE
Author date (UTC): 2009-08-25 18:16
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2009-09-02 15:42
Parent(s): 47b5dce395694c18c973e3ce6ba9a71c690a41bc
Signing key:
Tree: a0e39c9d8f6bd2fa7068036bd47e321d94e0b39f
File Lines added Lines deleted
Conn_engine_core.c 3 3
Conn_engine_core.h 1 0
TODO 1 1
File Conn_engine_core.c changed (mode: 100644) (index 57e8b0d..3bb0b98)
... ... char *Conn_type(const struct Conn *C)
366 366 } }
367 367 } }
368 368
369 char *Conn_protocol(const struct Conn *C)
369 char *Conn_get_socket_protocol(const struct Conn *C)
370 370 { {
371 371 switch (C->sock_protocol) { switch (C->sock_protocol) {
372 372 case IPPROTO_IP: return "IP"; case IPPROTO_IP: return "IP";
 
... ... char *Conn_status_slot(struct Conn *C)
467 467 " BS=%u/%u S=%s/%s" " BS=%u/%u S=%s/%s"
468 468 " T=%ld bw=%u f=%u tk=%u [%s]\n", " T=%ld bw=%u f=%u tk=%u [%s]\n",
469 469 C->id, C->slot, C->fd, C->id, C->slot, C->fd,
470 Conn_domain(C), Conn_type(C), Conn_protocol(C),
470 Conn_domain(C), Conn_type(C), Conn_get_socket_protocol(C),
471 471 Conn_socktype(C), Conn_state(C), Conn_socktype(C), Conn_state(C),
472 472 local_addr, local_port, remote_addr, remote_port, local_addr, local_port, remote_addr, remote_port,
473 473 C->via, polle, pollr, C->bi, C->bo, C->via, polle, pollr, C->bi, C->bo,
 
... ... char *Conn_status_slot_html(const struct Conn *C)
510 510 "<td>%u</td><td>%u</td><td>%u</td>" "<td>%u</td><td>%u</td><td>%u</td>"
511 511 "%s\n", "%s\n",
512 512 C->id, C->slot, C->fd, C->id, C->slot, C->fd,
513 Conn_domain(C), Conn_type(C), Conn_protocol(C),
513 Conn_domain(C), Conn_type(C), Conn_get_socket_protocol(C),
514 514 Conn_socktype(C), Conn_state(C), Conn_socktype(C), Conn_state(C),
515 515 C->addr, C->port, C->via, polle, pollr, C->bi, C->bo, C->addr, C->port, C->via, polle, pollr, C->bi, C->bo,
516 516 C->ibuf_size, C->obuf_size, C->ibuf_size, C->obuf_size,
File Conn_engine_core.h changed (mode: 100644) (index 4d3b95e..c7cc43f)
... ... extern char *Conn_obuf(const struct Conn *C);
307 307
308 308 extern char *Conn_domain(const struct Conn *C); extern char *Conn_domain(const struct Conn *C);
309 309 extern char *Conn_type(const struct Conn *C); extern char *Conn_type(const struct Conn *C);
310 extern char *Conn_get_socket_protocol(const struct Conn *C);
310 311
311 312 extern int Conn_addr_family(const char *addr); extern int Conn_addr_family(const char *addr);
312 313
File TODO changed (mode: 100644) (index 64d9cdb..c1d87e7)
3 3
4 4 == HIGH PRIORITY == == HIGH PRIORITY ==
5 5 [ ] Cache getaddrinfo responses [ ] Cache getaddrinfo responses
6
6 [ ] Replace Conn_X with Conn_get_socket_X!
7 7
8 8 == LOW PRIORITY == == LOW PRIORITY ==
9 9 [ ] SCTP [ ] SCTP
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