Skip to content

agustim/libevent2-chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple chat server using libevent2
-------------------------------------------------------------------------------
This chat is based with https://github.com/jasonish/libevent-examples/tree/master/chat-server by Jason Ish.

Changes:

* Use evconnlistener_new_bind for bind port, much simpler.
* Add evconnlistener_free because in some cases port is binded.
* Add singal in SIGINT.


USAGE

    Run the server:

        ./chat-server

    In client:
    	telnet localhost 5555
    or
    	nc localhost 5555

--
Agustí Moll <[email protected]>

Releases

No releases published

Packages

No packages published

Languages