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)
Added Conn_get_line. 5916ac4c9544d242a21ac50178efae893dff4806 Catalin(ux) M. BOIE 2008-07-04 08:59:27
Prepared to use duilder (my custom builder). 058d181795e64c0d1a82d587e7b1d858b7af87b2 Catalin(ux) M. BOIE 2008-03-21 13:37:19
Populated .gitignore file. e549ac0271ac654f039d5a04a0708d25030b0ed6 Catalin(ux) M. BOIE 2008-03-21 13:12:49
Replaced umbrella with embedromix. 6b6671cce7f0a2c98ac27705ad638c4e1bc52213 Catalin(ux) M. BOIE 2007-10-03 21:56:40
Incremented revision. e79bace79bb15f59133841a144ef1ff04e516cd5 Catalin(ux) M. BOIE 2007-10-03 21:55:25
Changed changelog. 00c9dba4e97d924299fd992ff8f4e20fce5c770e Catalin(ux) M. BOIE 2007-10-03 20:43:21
First import. 5ad0e7b8aa527aaebab52c53b45c36257fce5d0a Catalin(ux) M. BOIE 2007-10-03 20:20:26
Commit 5916ac4c9544d242a21ac50178efae893dff4806 - Added Conn_get_line.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2008-07-04 08:59
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2008-07-04 08:59
Parent(s): 058d181795e64c0d1a82d587e7b1d858b7af87b2
Signing key:
Tree: d0e7689e0cd59b509eea4ae4da8ac42ed095c056
File Lines added Lines deleted
Conn.c 16 0
Conn.h 1 0
File Conn.c changed (mode: 100644) (index 3101607..4fd125b)
... ... int Conn_set_cb(struct Conn *C, unsigned int type, void (*f)(struct Conn *))
1809 1809
1810 1810 return 0; return 0;
1811 1811 } }
1812
1813 /*
1814 * Returns a '\0' terminated line, modifying received buffer
1815 */
1816 char *Conn_get_line(struct Conn *C)
1817 {
1818 char *cr;
1819
1820 cr = Conn_strstr(C, "\n");
1821 if (!cr)
1822 return NULL;
1823
1824 *cr = '\0';
1825
1826 return Conn_ibuf(C);
1827 }
File Conn.h changed (mode: 100644) (index e2302f4..5cfc105)
... ... extern int Conn_get_fd(struct Conn *C);
218 218 extern void Conn_last_time(struct Conn *C, struct timeval *tv); extern void Conn_last_time(struct Conn *C, struct timeval *tv);
219 219 extern int Conn_set_cb(struct Conn *C, unsigned int type, extern int Conn_set_cb(struct Conn *C, unsigned int type,
220 220 void (*f)(struct Conn *)); void (*f)(struct Conn *));
221 extern char *Conn_get_line(struct Conn *C);
221 222
222 223 #endif #endif
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