毛のはえたようなもの

インターネット的なものをつらつらとかきつらねる。

2007-10-24から1日間の記事一覧

ネットワークプログラミング課題2

ソケットを開いて受信した相手のデータを表示し続けるだけのプログラム。 ソース汚い&C言語は正規表現使えないらしいのでC++に乗り換えようかと思っているところ。 #include <stdio.h> #include <string.h> #include <ctype.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #define PORT 5555 void er</netdb.h></netinet/in.h></sys/socket.h></ctype.h></string.h></stdio.h>…