ecserver.pl 源代码
敬业的IT人
互联网
佚名
2008-4-15 10:44:06
下面的代码有用到unix/linux的系统功能所以不能在NT上使用。
运行这个代码,你需要在相同目录下面放一个文本文件chat.log
聊天内容将保存在这个文件内。代码调用unix/linux处理log的function
写入/读取聊天内容。
至于多进程,好像socket自己就可以处理。。。那个listen()你自己看一下。
Perl我是几乎什么都不懂的。所以只好您老人家自己研究了。:)
搞明白了别忘了教小弟几招。
另外,nt平台上可以用vc写chatserver嘛。(这个我更不懂了)
#!/usr/bin/perl
# EveryChat Server Edition Beta 1
#
# This is beta code. You may not
# upload, post, mirror, share, sell
# or otherwise redistribute this
# code in full or in part without
# written permission from the
# author.
#
# By downloading this code, you
# are granted permission to use
# this code>
运行这个代码,你需要在相同目录下面放一个文本文件chat.log
聊天内容将保存在这个文件内。代码调用unix/linux处理log的function
写入/读取聊天内容。
至于多进程,好像socket自己就可以处理。。。那个listen()你自己看一下。
Perl我是几乎什么都不懂的。所以只好您老人家自己研究了。:)
搞明白了别忘了教小弟几招。
另外,nt平台上可以用vc写chatserver嘛。(这个我更不懂了)
#!/usr/bin/perl
# EveryChat Server Edition Beta 1
#
# This is beta code. You may not
# upload, post, mirror, share, sell
# or otherwise redistribute this
# code in full or in part without
# written permission from the
# author.
#
# By downloading this code, you
# are granted permission to use
# this code>
- 最新文章
- perl 调试工具 ptkdb 简单介绍[04-15]
- Perl是什么?[04-15]
- Windows95/98,NT下如何发EMAIL[04-15]
- 在Linux下访问MS SQL Server数据库[04-15]
- perl 域名查询程序[04-15]
- 使用Perl连接Access数据库详解[04-15]
- 相关文章
- 在Linux下访问MS SQL Server数据库[04-15]
- Perl连接SQLServer[04-15]
- CGI教学:第四章 设置Web Server以运行CGI[04-15]
- 用SQL Server为Web浏览器提供图像1[04-14]
- 用SQL Server为Web浏览器提供图像2[04-14]
- 用SQL Server为Web浏览器提供图像3(end)[04-14]
