2007-04-17から1日間の記事一覧

echo サーバ

socket プログラミング入門として echo サーバってのは定番だけどスーパーサーバー使えば /bin/cat を指定すればいいんじゃね、とか思った。 xinetd ならこういうのを /etc/xinetd.d に用意するだけ。 service myecho { disable = no type = UNLISTED socket…

daytime

Ubuntu/Debian で daytime service を動かすメモ。 とりあえず % sudo apt-get install xinetdして、/etc/xinetd.d/daytime の disable = yesを disable = noに書き換える。で、 % sudo /etc/init.d/xinetd restartで xinetd を再起動。

socket

講義に出てきたので久々に socket プログラミングとか。おー、昔はすごい面倒だと思ったものだが、今やると「まぁ、こんなもんか」って感じだ。年月って怖い。 で、つらつらと /usr/include/linux/socket.h を眺めていたら PF_BLUETOOTH なんてのを見つけた…