用Socket实现的多线程类邮件服务器,朋友的一个作业题

来源:互联网 发布:mysql 级联删除表 编辑:程序博客网 时间:2024/06/17 13:43

一个朋友的作业,用Socket实现简单的邮件功能,客户端和服务器端。

 

 

Computer and Communication Networks(CSIS0234B)
Assigment 1: Simple Mail Service
==============================================

file list
-----------------
MailServer.java
MailClient.java
readme.txt

Key feature
-----------------
1 Server support multi-threads of client
2 Support multi message from client for same user

 
Support command
-----------------
#USERNAME username of user
#PASSWORD password of user
#SENDTO  username send to;
#TITLE  title of message send to
#CONTENT content of message send to
#RECEIVE receive message current user logined
#EXIT exit the system

 

 

 

服务器端:

 

客户端:

 

 

完整的Eclipse项目代码下载