Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
»
TCP/UDP/”raw” (talk to IP)
syscalls - TCP client/simple test server
int s = socket(2)gethostbyname(3)connect(2)read/write(2)close(2)
int s = socket(2)bind(2)listen(2)accept(2)read/write(2)close(2)
init i/o
client
server
◆
◆
◆
◆
◆
◆
◆
◆
◆
◆
◆
◆
syscalls - UDP client/simple test server
int s = socket(2)gethostbyname(3)for(;;)
sendto(2)recvfrom(2) close(2)
int s = socket(2)bind(2) for(;;)
recvfrom(2)do something...sendto(2) close(2)
init i/o