Skip to content

simple client for sending messages to Slack via webhooks

License

Notifications You must be signed in to change notification settings

arsperger/cslack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

cslack is a simple C client for slack incoming webhook API.

(Re)implementation of nonblocking TCP/TLS client based on Linux Epoll API multiplexing

Example (send_slack.c)

See example/send_slack.c for more info.

Requirements

libssl-dev

Installation

make to build example make clean will remove binaries and object files

Comparing with other implementations:

libcurl:

time ./send_slack
real    0m1.505s
user    0m0.014s
sys     0m0.007s

basic sockets (blocking):

time ./send_slack 
real    1m2.569s
user    0m0.004s
sys     0m0.005s

epoll (master branch):

time ./send_slack
real    0m1.557s
user    0m0.713s
sys     0m0.213s

About

simple client for sending messages to Slack via webhooks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published