Implementing C Programs for TimeServer and TimeClient in Week 12

.docx

School

University of Texas, Dallas *

*We aren’t endorsed by this school

Course

3377

Subject

Computer Science

Date

Jun 11, 2024

Type

docx

Pages

5

Uploaded by CoachSparrowMaster99

11/12/23 Week 12 Lab 2 Abdullah Muhammad ** All parts have been labeled as well as worded for what is worked on under them. In this lab, timeServer and timeClient C programs were implemented and compiled to run in my terminal. The port # was originally given but then was changed to the one assigned within my net id range. IP# was found by hostname -i and port # varied for different students, and system calls such as ps and netstat were used to validate no server was running, and to kill if there was. Server alarms were implemented within the port# to show foreground and background tasks. login as: axm210331 Pre-authentication banner message from server: | University of Texas at Dallas | Department of Computer Science | | Use of UTD Information Systems is subject to | the UTD Information Security and Acceptable Use Policy. | | Pursuant to Texas Administrative Code 202: | (1) Unauthorized use is prohibited; | (2) Usage may be subject to security testing and monitoring; | (3) Misuse is subject to criminal prosecution; and | (4) No expectation of privacy except as otherwise provided by applicable | privacy laws. | | ATTENTION: utdnetid != utdnetid@utdallas.edu (UTD != Google!) | | Just use utdnetid, and for the love of programming, STOP USING ALL CAPS! | | [[NOTE: All CS Graduate Students should use csgrads1.utdallas.edu ]] | [[ If you are a CS Graduate Student, you cannot logon to this server.]] | | | ***** This system will require a connection to the GlobalProtect VPN startin > g
11/12/23 | on the following dates: | | cslinux1.utdallas.edu - June 15, 2020 | cslinux2.utdallas.edu - June 22, 2020 | | ***** GlobalProtect VPN Instructions: https://www.utdallas.edu/oit/howto/vpn > / | End of banner message from server Keyboard-interactive authentication prompts from server: End of keyboard-interactive prompts from server +----------------------------------------------------------------------+ MobaXterm Personal Edition v23.2 (SSH client, X server and network tools) ? SSH session to axm210331@cslinux1.utdallas.edu Direct SSH : ? SSH compression : ? SSH-browser : ? X11-forwarding : ? (remote display is forwarded through SSH) ? For more info, ctrl+click on help or visit our website. +----------------------------------------------------------------------+ Last login: Sat Dec 2 18:47:59 2023 from 10.50.242.245 ***---***---***---***---***---*** csgrads1.utdallas.edu - CentOS Linux 7.9 --All CS Graduate Students should use csgrads1-- cs1.utdallas.edu - CentOS Linux 7.9 cs2.utdallas.edu - CentOS Linux 7.9 ***---***---***---***---***---*** This system is for use by CS students who need a general purpose Linux system to complete homework assignments. Computationally or resource intensive simulations will be throttled automatically. Thank you, CS Lab Manager cs-labs@utdallas.edu /scratch disk space can be used for temporary files. All files within /scratch will be erased on a regular basis (Sunday 0300).
11/12/23 {cslinux1:~} ls abc.txt first.txt lab3 scriptForNew w4l1 Week05Lab2 week11Lab1 a.out hello Makefile script.sh w5l1 week07Lab1 Week12Lab1 apue hello(2).c newproject short w5l2 week07Lab2 week12Lab2 cat.txt hello(3).c new.txt typescript w6l1 week08Lab01 Week4Lab1 ch4lab1 hello.c perl5 Untitled.txt w7l1 week08Lab02 week4lab2 ch4lab2 hey practice w10l1 w7l2 week09Lab01 week5lab1 data.txt hey.txt public_html w10l2 Week05Lab1 week09Lab02 welcome.c days lab1 pwd w11l1 Week05Lab12 week10Lab1 welcome.h dog lab2 sample.txt w12l2 Week05Lab13 week10Lab2 welcome.h.gch {cslinux1:~} cd week12Lab2 {cslinux1:~/week12Lab2} ls Client0 Client1.c Client3 Server0.c Server2.c timeClient1 Client0.c Client2 Client3.c Server1 Server3 timeServer1 Client1 Client2.c Server0 Server1.c Server3.c {cslinux1:~/week12Lab2} ./Client3 Usage: ./Client3 <ip> <port> {cslinux1:~/week12Lab2} ./Server3 Usage: ./Server3 <port> <time> {cslinux1:~/week12Lab2} ./Server3 34875 10 ** The server uses port# 34875 to listen with 10 seconds for alarm ** ** The server will be terminated after 10 seconds of inactivity ** Sat Dec 2 18:57:22 CST 2023 cslinux1.utdallas.edu axm210331 PID TTY TIME CMD 16121 pts/9 00:00:00 bash 16682 pts/9 00:00:00 Server3 16683 pts/9 00:00:00 sh 16687 pts/9 00:00:00 ps total 816 -rwx--x--x 1 axm210331 se 8848 Nov 15 19:27 Client0 -rw------- 1 axm210331 se 1842 Nov 15 19:26 Client0.c -rwx--x--x 1 axm210331 se 8848 Nov 15 19:39 Client1 -rw------- 1 axm210331 se 1896 Nov 15 19:39 Client1.c -rwx--x--x 1 axm210331 se 13128 Nov 16 13:39 Client2 -rw------- 1 axm210331 se 1726 Nov 15 19:44 Client2.c -rwx--x--x 1 axm210331 se 13128 Nov 15 20:00 Client3 -rw------- 1 axm210331 se 1788 Nov 15 20:00 Client3.c -rwx--x--x 1 axm210331 se 9008 Nov 15 19:27 Server0 -rw------- 1 axm210331 se 1066 Nov 15 19:26 Server0.c -rwx--x--x 1 axm210331 se 9008 Nov 15 19:39 Server1 -rw------- 1 axm210331 se 1131 Nov 15 19:39 Server1.c -rw------- 1 axm210331 se 1230 Nov 15 19:44 Server2.c
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help