click below
click below
Normal Size Small Size show me how
csc chp2 flashcards
topic = socket programming
| Question | Answer |
|---|---|
| what is the goal of socket programming | learn how to build client/server applications that communicate using sockets |
| what is a socket | door between application process and end-end-transport protocol |
| what are two types of socket programming | UDP and TCP |
| what is a UDP | unreliable datagram |
| what is a TCP | reliable, byte stream-oriented |
| describe the socket programming characteristics with UDP | no connection between client & server (no handshaking before sending data / sending explicitly attached IP destination address and port # to each packet / receiver extracts sending IP address and port # from received packet) |
| how does UDP receive/send data | transmitted data may be lost or received out-of-oder |
| what is the application viewpoint for UDP | UDP provides unreliable transfer of groups of bytes (datagram) between client and server |
| example app on UDP client | slide 104 |
| when socket programming is being used with TCP what must happen | client must contact server (server process must first be running / server must have created socket that welcomes client's contact) |
| how does a client contact a server using socket programming with TCP | creating TCP socket, specifying IP address, port number of server process / when client creates socket = client TCP establishes connection to server TCP |
| what happens when contacted by client | TCP creates new socket for server process to communicate with that particular client (allows server to talk with multiple client / source port numbers used to distinguish clients) |
| what is the application viewpoint on TCP | TCP provides reliable, in-order byte-stream transfer between client and server |
| example on client/server socket interaction | slide 107 |
| END of chapter 2 notes |