libevent でチャットサーバのサンプルを書いたメモ。

チャット送受信のプロトコルを決めるなどして、少しだけまじめ。

libevent-chat-sample-0.1.tar.gz

インストール

事前に libevent が必要。インストールはこちら参照

$ tar zxvf libevent-chat-sample-0.1.tar.gz
$ cd libevent-chat-sample-0.1
$ ./configure --prefix=/path/to/install --with-libevent=/path/to/libevent
$ make
$ make install

使用方法: サーバ

$ cd /path/to/install/bin
$ ./libserver

使用方法: クライアント

$ cd /path/to/install/bin
$ ./libclient

関連エントリー:

libevent + 使い方

libevent + static link

TCPサーバ + サンプル

node.js と websocket を使ってチャットサーバを書いてみたメモ

Mac + Subversion + インストール

  One Response to “libevent + チャットサーバ”

  1. [...] 関連:チャットサーバのサンプル [...]

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt=""> <pre lang="" line="" escaped="" highlight="">