-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
70 lines (70 loc) · 1.5 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
1. Eric Todd
2. Client: roboevt@DESKTOP-JHQK8MN:~/dev/422/18-studio$ ./client a
1 2 3 4 5 6 7 8 9 10
Server: roboevt@DESKTOP-JHQK8MN:~/dev/422/18-studio$ ./server a
1
2
3
4
5
6
7
8
9
10
3. ~/dev/422/18-studio$ ./server a
Client connected
1
2
3
Client disconnected
Client connected
1
2
3
Client disconnected
Client connected
1
2
3
Client disconnected
Client connected
418
I'm a teapot
Code recieved, terminating
Server terminated
4. ./client2
1 2 3
roboevt@DESKTOP-JHQK8MN:~/dev/422/18-studio$ ./client2 quit
[e.todd@shell cse422]$ ./server
Client connected
1
2
3
Client disconnected
Client connected
418
I'm a teapot
Code recieved, terminating
Server terminated
5. roboevt@MSI_GS66:~/dev/422/422studio18$ ./client2
Host name: MSI_GS66
Connected to shell.cec.wustl.edu:30003
1 2 3
[e.todd@shell cse422]$ ./server
Host name: shell.cec.wustl.edu
Client connected
1
2
3
Client disconnected
Client connected
1
2
3
Client disconnected
6. The client uses htonl, in order to convert from the machine's byte order to that of
the network. On the other end, the server uses ntohl to convert from the network's
format to it's own. Both use the *l function, as it is appropriate for 32 bit
unsigned integers, which is what we want to send.
7.