• Stars
    star
    897
  • Rank 50,907 (Top 2 %)
  • Language
    C
  • License
    GNU Lesser Genera...
  • Created over 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
Copyright (C) 2010 Happy Fish / YuQing

libfastcommon may be copied only under the terms of the Less GNU General
Public License(LGPL).
Please visit the libfastcommon Home Page for more detail.
English language: https://github.com/happyfish100/libfastcommon
Chinese language: http://www.fastken.com/


c common functions library extracted from my open source projects FastDFS and 
FastDHT. this library is very simple and stable.

some functions are wrappered into php extension, such as fastcommon_gethostaddrs,
     fastcommon_id_generator_xxx, fastcommon_get_ifconfigs, fastcommon_get_sysinfo etc.

C function including:
  logger: [logger.h] asynchronously sync to disk for high performance, thread safe,
          log rotate, auto delete old log files, compress log file etc.

  ini file reader: [ini_file_reader.h] support sections marked by [SectionName]
          support a config item ocurs multiple times for multiple values, such as:
             tracker_server = ip1
             tracker_server = ip2
          #include directive to include other ini file
          #@function directive for annotation
          #@set directive to set variables for condition of #@if directive
          support control statements for special purpose as:
              #@if, #@else, #@endif, #@for, #@endfor

  id generator: [id_generator.h] generate unique 64 bits integer ID for multi processes

  string operation: [shared_func.h] uppercase, lowercase, trim etc.

  base64 encode / decode: [base64.h] for standard base64 or variable base64

  url encode / decode: [shared_func.h]

  md5 encode: [md5.h]

  hash: [hash.h] hash table

  chain: [chain.h] singly linked list

  blocked queue: [fast_blocked_queue.h]

  avl tree: [avl_tree.h] AVL tree

  skiplist: [skiplist.h] [flat_skiplist.h] [multi_skiplist.h] flat skiplist and multi skiplist

  socket: [sockopt.h] socket wrapper for connect, recv, send etc. support IPv6

  ioevent: [ioevent.h] [ioevent_loop.h] like epoll (support Linux, FreeBSD and SunOS),

  io buffer management: [fast_task_queue.h] for network io buffer

  memory pool: [fast_mpool.h]

  object based allocator: [fast_mblock.h]

  connection pool: [connection_pool.h]

  time wheel based timer: [fast_timer.h] for network timeout management, very high performance

  local ip functions: [local_ip_func.h] get local ipv4 addresses

  system info functions: [system_info.h] get cpu count, memory size, system load,
          mounted filesystems and processes info etc.

  process control: [process_ctrl.h] for process start/stop/restart control

  task schedule: [sched_thread.h] task shedule management/thead for repeat tasks

  char convert: [char_converter.h] and [char_convert_loader.h] for fast char convert

detail info please see the c header files.

More Repositories

1

fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
C
9,016
star
2

fastdfs-client-java

FastDFS java client SDK
Java
1,598
star
3

FastCFS

A high performance distributed file system which can be used as the back-end storage of databases, K8s and VM etc.
C
551
star
4

libshmcache

libshmcache is a local cache in the share memory for multi processes. high performance due to read is lockless. libshmcache is 100+ times faster than a remote interface such as redis.
C
447
star
5

fastdfs-nginx-module

FastDFS nginx module
C
433
star
6

fastdht

FastDHT is a high performance distributed hash table (DHT) which based key value pairs. It can store mass key value pairs such as filename mapping, session data and user related data.
C
122
star
7

faststore

a high performance distributed file storage service.
C
30
star
8

fastkengine

knowledge base engine
C
25
star
9

fastDIR

a high performance distributed directory service.
C
24
star
10

watchd

watchd is a process watcher / monitor, so watchd is a process watch dog to keep the watched processes alive.
C
21
star
11

libserverframe

C network service framework library extract from FastDFS
C
20
star
12

fastcfs-csi

k8s CSI driver for FastCFS
Go
11
star
13

fastconfig

the config server and agent for configuration items.
C
11
star
14

cparser

an open C language parser. you can walk through the AST for special purpose.
C
9
star
15

fastdfs-apache-module

FastDFS apache module
C
8
star
16

fasttemplate

C library and PHP extension for fast variables replace of template.
C
6
star
17

FastOS.repo

Fast Open Source yum repo
Shell
4
star
18

cplus

C language data type and syntax extension for quick development. extended data type including: string, map, list and dynamic array.
3
star
19

libdiskallocator

sequential disk allocator based trunk files
C
2
star
20

test

just a test
C++
1
star