正在加载图片...
sRcc The since program takes input from stdin as client commands to send to the server, and echoes server reply on the screen. This can be used to checktheexactformatsofresponses fromyour server andtest how your server behaveswhengiven input is not compliant with the IRC specification unix>/srcc -h usage: srcc <ip address><port When using srcc, <ip address> and port> are the address and port number of your IRC server By default, the address is set to your local machine and the port number is 666 n order to avoid port collisions from different people, use port numbers in the range: [20000+last 2 bits of your student number*100, 20000-+ last 2 bits of your student number*100+99] For example, if your last 2 bits of your student number is 23, then you should choose the ort numbers from the following range: [22300, 22399] For project 1, you only need one server, o the address can be the following Node id IP Address Routing port Local port IRC Port 1270.0.1 22300 22301 22302 IRC Test scripts The test scripts test your IRC server against different types of commands. For example login. exp checks the replies of the command niCK and USer /lo usage: login.exp<host>< Here <host>and<portare the address and port number of your IRC server You may use the provided test scripts as a base to build your own test case. You may also find the following tools to be useful in your test code development expect Quoting from the expect man page, Expect is a program that"talks"to other interactive programs according to a script. Following the script, Expect knows what can be expected from a program and what the correct response should be. An interpreted language provides branching and high-level control structures to direct the dialogue 8 Hand in Your code should submitted/p:∥0.32.141.33lase0/02计算机网终 /WORK UPLOAD/Project 1/,name Checkpoint 1-/Project 1/YOUR STUDENT ID/checkpoint Final Hand-in-/Project1/ YOUR STUDENT ID/final your repository should contain the following files Makefile- Make sure all the variables and paths are set correctly such that your program compiles in the handin directory. The Makefile should build executable named sired6 sircc: The sircc program takes input from stdin as client commands to send to the server, and echoes server reply on the screen. This can be used to checktheexactformatsofresponses fromyour server andtest how your server behaveswhengiven input is not compliant with the IRC specification. unix>./sircc -h usage: sircc <ip address> <port> When using sircc, <ip address> and <port> are the address and port number of your IRC server. By default, the address is set to your local machine and the port number is 6667. ports: In order to avoid port collisions from different people, use port numbers in the range: [20000+last 2 bits of your student number*100, 20000+ last 2 bits of your student number *100+99] For example, if your last 2 bits of your student number is 23, then you should choose the port numbers from the following range: [22300, 22399]. For project 1, you only need one server, so the address can be the following: Node ID IP Address Routing Port Local Port IRC Port 1 127.0.0.1 22300 22301 22302 IRC Test scripts: The test scripts test your IRC server against different types of commands. For example, login.exp checks the replies of the command NICK and USER. unix>./login.exp usage:login.exp<host><port> Here <host>and<port>are the address and port number of your IRC server. You may use the provided test scripts as a base to build your own test case. You may also find the following tools to be useful in your test code development: expect Quoting from the expect man page, Expect is a program that "talks" to other interactive programs according to a script. Following the script, Expect knows what can be expected from a program and what the correct response should be. An interpreted language provides branching and high-level control structures to direct the dialogue. 8 Hand in Your code should submitted ftp://10.132.141.33/classes/08/102 计算机网络 /WORK_UPLOAD/Project 1/, name • Checkpoint1 - /Project1/ YOUR_STUDENT_ID/checkpoint • Final Hand-in - /Project1/ YOUR_STUDENT_ID/final, your repository should contain the following files: • Makefile - Make sure all the variables and paths are set correctly such that your program compiles in the handin directory. The Makefile should build executable named sircd
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有