服务器使用以下服务器和客户端结构, 编写一个储存考试结果的共享

储存服务器  时间:2021-05-03  阅读:()

使用以下服务器和客户端结构 编写一个储存考试结果的共享服务器。 服务器有所有给出科目的学生的考试结果。每个学生有单独I D 学生号和mark(分数 。 服务器需要可以让老师登录然后输入每个学生的分数。服务器管理所有的老师的登录名和密码和学生ID。

服务器需要允许多个老师同时登录。importjava. io.*;*importjava.net. ;class…Server {final static int portSqrt=1234; //any number>1024publ icstatic void main(String[]args) {

Screen.message("Server running . . .");try{

ServerSocket servesock=new ServerSocket(portSqrt);

//for service requests on port portSqrtwhi le(true) {

//wait for a service request on port portSqrt

Socket socket=servesock.accept();

//start thread to service request

(new Thread(new ThreadName(socket))).start();

}

}catch(IOException e) {}

}

}importjava. io.*;*importjava.net. ;class. .Cl ient {private final static i nt port=1234;publ icstatic void main(String[]args) {try{

Socket socket;socke=t=new Socket(InetAddress.getLocalHost(),portSqrt);

…in new…(socket.getInputStream());

…out=new…(socket.getOutp utStream());

//use out to send data

//use in to get reply

//process replysocket.close();

}catch(IOException e) {System.out.pri ntln(e);}

}

}

-------------------------------------------------------------------------------------------------------

Using the client server architecture developed in the lecture course,write a server thatprovides access to a shared collection of examination results. The server holds theresults for all students in a given course.Each student has an id number and a mark.When a student logs on they enter their id number and the server returns the mark forthe examination. It should be possible for a lecturer to log on and enter marks forstudents.The server maintains a list of lecturers and their passwords and also a list ofstudent id numbers. It is important to remember that multiple lecturers may enterresults at the same time.

盘点618年中大促中这款云服务器/VPS主机相对值得选择

昨天有在"盘点2021年主流云服务器商家618年中大促活动"文章中整理到当前年中大促618活动期间的一些国内国外的云服务商的促销活动,相对来说每年年中和年末的活动力度还是蛮大的,唯独就是活动太过于密集,而且商家比较多,导致我们很多新人不懂如何选择,当然对于我们这些老油条还是会选择的,估计没有比我们更聪明的进行薅爆款新人活动。有网友提到,是否可以整理一篇当前的这些活动商家中的促销产品。哪些商家哪款产...

georgedatacenter39美元/月$20/年/洛杉矶独立服务器美国VPS/可选洛杉矶/芝加哥/纽约/达拉斯机房/

georgedatacenter这次其实是两个促销,一是促销一款特价洛杉矶E3-1220 V5独服,性价比其实最高;另外还促销三款特价vps,georgedatacenter是一家成立于2019年的美国VPS商家,主营美国洛杉矶、芝加哥、达拉斯、新泽西、西雅图机房的VPS、邮件服务器和托管独立服务器业务。georgedatacenter的VPS采用KVM和VMware虚拟化,可以选择windows...

ATCLOUD.NET-OVH海外高防云主机,采用KVM架构,稳定安全且便宜好用,仅3刀起

官方网站:点击访问ATCLOUD.NET官网优惠码:目前提供Cloud VPS与Storage VPS两款产品的六折优惠活动(续费同价,截止至2021年5月31日)优惠码:UMMBPBR20Z活动方案:一、型号CPU内存磁盘流量优惠价格购买链接VPS-1GB0.5×2.6+GHz1GB20GB1TB$3立即购买VPS-2GB1×2.6+GHz2GB50GB2TB$6立即购买VPS-4GB2×2.6...

储存服务器为你推荐
第二类医疗器械注册证核发访问chrome巧摄专业版使用指南杭州市西湖区翠苑第四幼儿园智慧校园采购项目支持ipadnetbios端口怎么关闭8909端口!其他端口就不用了photoshop技术什么是ps技术phpechophp echo函数 是什么意思联通iphone4联通iphone4跟苹果的iphone4有什么不一样? 比如少了什么功能? 还是什么的?csshack关于CSS hack的写法
net主机 电信测速器 东莞电信局 idc评测 国外idc directadmin 淘宝双十一2018 一点优惠网 panel1 圣诞促销 cdn加速是什么 息壤代理 环聊 下载速度测试 主机管理系统 新加坡空间 东莞主机托管 申请免费空间 lamp架构 服务器硬件配置 更多