tcpecho

所属分类:Linux/Unix编程
开发工具:Unix_Linux
文件大小:3KB
下载次数:4
上传日期:2007-10-14 08:47:10
上 传 者dxo
说明:  先用makefile编译,连接后,client发字符到server端并返回该字符串,遇到a,e,i,o,u则加*号,如*a,收到fin字符串则结束客户端及服务器端程序.实现echo功能
(First makefile compile, connected, client fat client characters into server and return the string encountered in a, e, i, o, u will add an asterisk, such as* a, Receiving fin is the end of the string and the client server-side program. realize echo function)

文件列表:
client.c (2224, 2007-09-26)
makefile (233, 2007-09-27)
server1.c (3972, 2007-09-27)

the programe have completed all the component of the lab's requirement for instance: it can communicate with two diffrent host, one client, and one server. I use server1.c and client.c as the source file, and I can use the makefile command to compile, for example: make server, or make client run: server side: ./server client side: ./client IPaddress Portnumber(for instance: ./client 196.192.100.5 3490) and Portnumber is be set to 3490 introduction: server receives a message from a client over TCP socket and replies the same message back to the source with put some stars after every vowel. For example, if a sever gets a message °Hello Jim± from a client, then the star echo server sends back the message °He*llo* Ji*m± to the client. The server program should be terminated if it gets °fin± message from a client after it replies °fi*n± message to the client. and both server and client can be stop by "fin"

近期下载者

相关文件


收藏者