Download An Introduction to Embedded Programming in a Linux Environment
Transcript
Using the uCsimm Ethernet Capability /* this clause finds a client doing a write operation */ sleep(3); read(desc, &ch, 1); printf(“Server dealing with client (descriptor = %d).\n”, desc); write(desc, &ch, 1); } } }/* end of the for loop */ }/* end of the while loop */ /* program, as is, won’t get here */ close(serv_sock_desc); exit(0); } 6 - 6 Activities / Exercises 6 - 6.1 Server and client on a single uCsimm Modify the server program from section 3.1 so that the server 110 An Introduction to Embedded Programming in a Linux Environment