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)
Very important fixes 01e33f06a5cdc52fb3795158fd838fcca7055dda Catalin(ux) M. BOIE 2017-12-30 23:39:17
Bump version to 1.0.37 54e8f3bcaf7f7e096c454563039a545a4abb1bf0 Catalin(ux) M. BOIE 2017-12-30 22:13:12
Lots of small fixes 4894de0472e571b8c78294de527bf70089096545 Catalin(ux) M. BOIE 2017-12-30 22:11:09
Checkpoint b6bf45330f046da40d762b6fd10d1bb97bc40036 Catalin(ux) M. BOIE 2017-12-28 00:13:09
Fixed libConn*.so instalation. df1bef9190d30dd11fcd150b41810ce18278b74f Catalin(ux) M. BOIE 2015-04-25 14:43:37
libConn1.so was not included in spec file. dd99625a7fb70d66fa5a91371fb4d2eaf7a4f23d Catalin(ux) M. BOIE 2015-04-25 14:39:32
Small fixes for build system. ab12cbbe149933cbf1b9a9900be1a45d63ee0b29 Catalin(ux) M. BOIE 2015-04-25 14:17:14
Build fixes e7521468199d4da53461fb0c1ffa08e1913c1e9f Catalin(ux) M. BOIE 2015-04-24 19:18:42
Checkpoint before switching to processes not threads de43b387557dde215ab1210838d396e7e7b22c4f Catalin(ux) M. BOIE 2015-01-14 04:13:00
Wpools work now\! f875d6bea1777c3a290bf9bb1aa047f26c935a63 Catalin(ux) M. BOIE 2013-11-13 20:51:13
WIP 1d246f2130d4acf8c267e82051b250a623da6870 Catalin(ux) M. BOIE 2013-10-16 19:57:04
WIP 6387026db3ce7983e610887565a282f4124d4092 Catalin(ux) M. BOIE 2013-10-14 20:06:49
WIP 15f063f9d34d3f7b7ae9d9e83f59b4077515122b Catalin(ux) M. BOIE 2010-09-30 22:01:30
Switch licence to LGPLv3+; Do not stupidly close master socket. d3b1c4ccd591627e7faa0eeaaa3b2bc1ee20709e Catalin(ux) M. BOIE 2013-08-14 04:09:36
Duilder fixes. Removed -O0. Fixed spec file. d8a03dced52e918b6f66a05dfd64a3c75c07c91b Catalin(ux) M. BOIE 2011-12-14 09:12:55
Fixed a stupid logging bug (invalid number of parameters). e7d4c38d0130a142ac6c409c63d63201d2af08e2 Catalin(ux) M. BOIE 2010-12-22 16:46:47
Ignore all Changelog files. fa45b63d3db958228f44bcb3d6431d60f94d1147 Catalin(ux) M. BOIE 2010-12-22 16:46:16
Added mailmap file. a57dcfd6bdf6c8c86161cf7ce3fff942a714a2b9 Catalin(ux) M. BOIE 2010-12-22 16:46:04
WIP a69db41578de7ded49d656b7ea7cfae76c6695d9 Catalin(ux) M. BOIE 2010-09-30 22:01:30
Be more verbose in try_expand_buf and error out connection when cannot expand. e95ac8d7e5015958d3594862c6183b63bab80d4a Catalin(ux) M. BOIE 2010-09-30 20:58:08
Commit 01e33f06a5cdc52fb3795158fd838fcca7055dda - Very important fixes
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-12-30 23:39
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-12-30 23:39
Parent(s): 54e8f3bcaf7f7e096c454563039a545a4abb1bf0
Signing key:
Tree: df173ced01231ce6a23c0f021cd41614c4c178a3
File Lines added Lines deleted
Conn.c 1 1
Conn_web.c 11 7
File Conn.c changed (mode: 100644) (index 3164c2c..6fdb2aa)
... ... __hot int Conn_enqueue(struct Conn *C, const void *buf, const unsigned int count
3076 3076
3077 3077 ret = Conn_enqueue_wait(C, buf, count); ret = Conn_enqueue_wait(C, buf, count);
3078 3078
3079 if (likely(ret > 0))
3079 if (likely(ret == 0))
3080 3080 Conn_default_cbs_send(C); Conn_default_cbs_send(C);
3081 3081
3082 3082 return ret; return ret;
File Conn_web.c changed (mode: 100644) (index 75723c0..14e0d5b)
... ... int Conn_web_ws_parse(struct Conn_web_ws *w, struct Conn *C)
471 471 } }
472 472
473 473 if (unlikely(w->opcode != 0x1)) { if (unlikely(w->opcode != 0x1)) {
474 Log(20, "\topcode is not 'text'\n");
474 Log(20, "\topcode is not 'text' (%hhu)\n", w->opcode);
475 475 return -1; return -1;
476 476 } }
477 477
 
... ... void Conn_web_ws_enqueue(struct Conn *C, const unsigned char opcode,
537 537 buf[i++] = len; buf[i++] = len;
538 538 } else if (len <= 65535) { } else if (len <= 65535) {
539 539 buf[i++] = 126; buf[i++] = 126;
540 buf[i++] = len / 256;
541 buf[i++] = len % 256;
540 buf[i++] = len >> 8;
541 buf[i++] = len;
542 542 } else { } else {
543 buf[i++] = 127;
544 buf[i++] = len / 256;
545 buf[i++] = len % 256;
546 // TODO
543 buf[i++] = 0;
544 buf[i++] = 0;
545 buf[i++] = 0;
546 buf[i++] = 0;
547 buf[i++] = len >> 24;
548 buf[i++] = len >> 16;
549 buf[i++] = len >> 8;
550 buf[i++] = len;
547 551 } }
548 552 Conn_enqueue_wait(C, buf, i); Conn_enqueue_wait(C, buf, i);
549 553 Conn_enqueue(C, s, len); Conn_enqueue(C, s, len);
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