Lab 10 Networking Part 2
Implement network sockets
Network Sockets
Expectation
$ make server
python2 server.py 26099
listening on localhost port 26099
(then on xv6 in another terminal on the same machine run
nettests; see below)
hello world!Solution
How it works end to end
How sys_connect, and sys_write work?
sys_connect, and sys_write work?
How receiving a packet work end to end?

How reading a socket works?

Code
Implement socket read
Implement socket write
Implement socket close
Implement sockrecvudp
sockrecvudpIntegrate above methods to file.c
file.cHow to test
Last updated