Today, I reviewed the HTTP connections. HTTP connections Non-persistent HTTP At most one object sent over TCP connection connection then closed Downloading multiple objects required mutiple connections Persistent HTTP Multiple objects can be sent over single TCP connection between client, server. Here is the picture describing Non-persistent HTTP And this is the Persistent HTTP. In the Web serve..
This time we are gonna talk about the Web and HTTP. Review: Web page consists of objects Object can be HTML, JPEG image, Java applet, audio file... Web page consists of base HTML-file which includes severall referenced objects Each object is addressable by a URL ex) www.someschool.edu(host name)/someDept/pic.gif(path name) HTTP: Hypertext transfer protocol Web's application layer protocol Client..
Today, I reviewed the HTTP in network programming. Creating a network app Write programs that: run on (different) end systems communicate over network e.g., web server software communicates with browser software No need to write software for network-core devices network-core devices do not run user applications applications on end systems allows for rapid app development, propagation. I need to ..
Today, I leanred about the Event Object in Javascript. In Javascript, the browser will construct an event object that contains information about the event when an event is triggered. We already know there are: e.type: the type of the event (click, focus, blur) e.target: the element that triggered event e.pageX: the horizontal coordinate of the mouse pointer upon click e.pageY: the vertical coord..
Today, I solved the Merge Two Sorted Lists. Description: We have two lists, and we are gonna merge those two lists. The point is that we are gonna sort new list in non-decreasing order. Solution1: We make dummy node to avoid some error. And, we make curr node to know our location in both lists. Our while loop runs until we put every values in list1 and list2. If the value of list1 is less than l..
Today, I solved the Reverse Linked List. Description: In this problem, we reverse the order of single linked list. My idea was that changing the pointer to make reverse order. So, I thought I should change like this "1->2" as a "2->1" repeatedly. In the description of the question, we can see "A linked list can be reversed either iteratively or recursively." I'm not sure about this kind of quest..
Today, I did some Javascript exercise. In the first exercise, I moved some object to see the Javascript events. Here is the picture description. To change the posistion of mustache and eye, we are gonna put some events in Javascript code. Here is my code! In Javascript code, we get the id element, and store it in const l and const m. const l is about the mustache. const m is about the eyes. By a..
Today, I learned about the IP fragmentation and reassembly. So, our network usually have MTU (Max Transimission Unit): maximum amount of data that a link-layer frame can carry (max size of an IP packet). Different data link protocols (like Ethernet, WiFi) have different MTUs. The important point is that if a IP packet arrives at a router with larger size of packet than MTU, then the router divid..
Today, I learend about the Internet Protocol. It is the introduction part for IP Protocol. Before start the IP, we should know about the Network Layer. Network layer Transport segment from sending to receiving host On sending side encapsulates segments into datagrams On receiving side, delivers segments to transport layer Network layer protocols in every host, router Router examines header field..
Today, I learned basic event handling in Javascript. This picture shows you how Javascript event handling works. When we defined the event handler and registered it, we includes the event trigger in the code. When user or page action triggers the event, the event executes by Javascript. There are three types of events. Mouse events Keyboard events. Form events. This is just the reference we comm..