皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
使用TCP协议编写一个网络程序,设置服务器程序监听端口为8002,当与客户端建立连接后,向客户端发送“hello world”,客户端接负责将信息输出。 提示: 1)使用ServerSocket创建服务器端对象,监听8002端口,调用accept()方法等待客户端连接,当与客户端连接后,调用Socket的getOutputStream()方法获得输出流对象,输出“hello world。 2)使用Socket创建客户端对象,指定服务器的IP地址和监听端口号,与服务器端建立连接后,调用Socket的getInputStream()方法获得输入流对象,读取数据,并打印出来 3)在服务器端和客户端都调用close()方法释放socket资源
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Why can't nutritionists say that a certain way of eating will guarantee freedom from heart disease, or any other disorder?
A.
There are too many ways of eating
B.
They are not sure of its effect themselves
C.
They are divided in opinions.
D.
People are different from each other, and they have different nutritional needs.
【单选题】How many ways do nutritionists utilize to test malnutrition in general?
A.
7.
B.
3.
C.
5
D.
6
【简答题】The author tried to explain the importance of education by decribing to the student how he would spend his ____ after college: He would ____ for about 8 hours; He would ____ for another 8 hours using ...
【简答题】( )一般用来表示位置,既无长度,也无宽度。
【判断题】时序逻辑电路结构特点是电路中一定有触发器。 ()
A.
正确
B.
错误
【简答题】The author tried to remember how to escape from a rip current, and with that, he slowly made his way to safety, thus __________ his inner fear of water as well.
【简答题】假设某企业生产A、B两种产品,其中A产品市场份额高,B产品主要根据客户需求生产。传统成本计算资料如表10-8.经过作业分析后,为制造费用和分配建立的作业成本库及其成本动因等资料见表10-9。 表10-8 传统成本计算资料 项目 A产品 B产品 产量(件) 4000 1000 机器小时 500 100 直接人工 20000 8000 直接材料 35000 10000 制造费用 36000 表10-9...
【单选题】It is clear that subsidies on commercial new energy vehicles for public purposeswill help China to _____ its global lead in new energy vehicles.
A.
c onsolidate
B.
propagate
C.
administrate
D.
legislate
【简答题】我国古今名人和文学名著人物的名字有不少出典于《诗经》和《楚辞》,请列举10个以上,并指明其具体出处和涵义。(5.0分) 示例: 琼瑶,现代中国女作家 《诗经 · 卫风 · 木瓜》“投我以木桃,报之 以琼瑶” 琼瑶:美玉。琼,玉之美者。瑶,泛指美玉,
【单选题】SECTION B PASSAGES Directions: In this section, you will hear several passages. Listen to the passages carefully and then answer the questions that follow. 听力原文: In addition to exercising regularly, e...
A.
the importance of eating a good breakfast
B.
a new reduction plan
C.
the daily requirement of nutrients
D.
problems brought by dieting
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题