Knife Socket

Burning Question: Why Do We Still Have Power Cords?
Radio waves, lasers, magnetic induction: There are plenty of ways to beam volts through the air. Sadly, none are as cheap, efficient, convenient or safe as a cord.

Java Sockets - You Just Got to Plug Them in

I realised that programming in Java is quite a fun only after doing it myself. You will be amazed to know that it's like putting different pieces of puzzle together. You put them relatively in an integrated and coherent manner. The Beauty of it is, that most of the times you dont have to create these pieces yourself. You just customize them according to your need after you get them from an already defined java class or package. It was about programming, now lets talk sumthing about sockets.

Socket is used to establish a point-to-point, bidirectional connection between two entities in a network. Just like a real world socket, it is used to plugin a connection from another source. The connection can be incoming or outgoing or both. Similar is the case at the other end. To understand these sockets  properly, you need to learn a bit about Operating System and its Networking Protocols. Sockets are basically of three types: 1)UNIX Domain Sockets; 2) Internet Domain Sockets; 3) NS domain Sockets.

Java being platform independent Programming language, supports only Internet Domain Sockets as only they are platform independent out of three. These internet domain sockets are distinguished on the basis of Internet protocol they work on...

1) TCP/IP(Transfer Control Protocol): The data transfer is reliable, in-order,connection oriented, so takes connection establishment time before the actual data transfer takes place. Sockets based on TCP/IP are known as Stream Sockets.

2) UDP(User Datagram Protocol): It is connectionless,unrealiable and unordered data transfer protocol. Each packet in it has a destination address associated with it and is realeased into the network to make its own way. The sockets based on UDP are called Datagram Sockets.

3) Raw IP: It is a non-formatted protocol. Unlike TCP/IP, UDP protocols, Raw IP is not a core protocol of IP Suite. It's different from them as its used to receive header information of the packet along with data, which is not the case in TCP/IP, UDP, they just receive data.

In Java Sockets are mainly implemented from already defined classes and pakages. These are:

1) Java.net.package: It contains all the classes that a user require to create a network based application. The below mentioned classes namely ServerSocket and Socket are also its part. This package also contain classes to create Secure Sockets and to connect a Web Server.

2) ServerSocket Class: It Provides sockets for the Server side.These sockets monitor network for requests or simply waits for them. When such request arrives, a server socket performs assigned task based on the request.

3) Socket Class: This class provides the Client side sockets. These sockets connect to the server, send and receive data for the client.

Remember, no socket can work without a port which is identified by a port no. Port is a gateway to a socket connectivity which is on the both sides of network. A socket is mainly identified as per its ports.

About the Author

Shubhendu Sharma
Email:er.shubhendu@gmail.com

logo Knife Socket

No items matching your keywords were found.

Move
-

Military Knives

Top Headline

Original Escape

The 10 sexiest on-screen spies We know it's serious news. But we'll admit: The recent arrest of 11 members of a so-called Russian espionage ring -- coupled with coverage of their assumed identities, their old-school tactics (invisible ink!), and even, in the case of "red-hot beauty" Anna Chapman, their coquettish Facebook pictures -- got us thinking about some of our favorite stylish spies from film and television. Here's a ... Ford Escape And The 2012 VersionFord Escape has always been the most popular compact SUV in United States and neighbor countries. As a matter of fact, it was a top seller in the recent "cash-for-clunkers" program, according to U.S. Transportation Department tallies--the...

Read More ...

Vintage Knife Inscribed

Vintage hats are a timeless treasure, and a captivating symbol of classic feminine allure. Why have vintage hats remained so popular? First, here's a little back story. At one time, a woman couldn't go out without a hat, without seeming rude or class-less! Hats used to convey marital status, status for one's place in society, and most importantly, wealth. Hats were also useful tools for women - they protected the complexion from the sun and wind, and could be used as a flirtation device, concealing parts of the face to giggle, or sending a secret, seducing shy glance towards the way of a fine young gentleman. Hats have been made of cotton fabric, straw, fur, wool felt, and anything...

Read More ...

Corp Fighting Knife

Peterborough man charged in stabbing death of his mother A 21-year-old man has been charged with the first degree murder of his mother, who was stabbed to death on Wednesday. The Chief Medical Officers report for the UK estimates that almost 8 million people suffer from chronic pain. 1.6 million people say it is in their back while another 1 million women report chronic pelvic pain. Nearly half of the people who report the pain say it has lead to depression and 16% say it is so bad they want to die. These people do not have to suffer though; many are finding relief through myofascial release therapy. Myofascial is a term derived from Latin. Myo means muscle and fascia means band. In...

Read More ...

Nib Bolo Metal

Metal allergy refers to a type of hypersensitivity reaction of the body against metal substances. One of the most common types of metal allergy is skin allergy against nickel especially in women who are using cheap jewelries that are made from nickel or with high nickel alloy. It has been said that 10 percent of the population unknowingly suffer from some sort of metal allergy. This cell-mediated type of hypersensitivity reaction can irritate the skin, causing rashes, eczema and inflammation with every close contact with a metal allergen. Orthopedic patients who have implants in them may suffer from metallic allergies in one way or the other and may manifest the same signs and symptoms...

Read More ...

Usn Springfield Mark

Indisputably one of the key figures in American literature, Mark Twain trivia should be of interest to anyone who is studying American fiction in any form. The most obvious piece of information about Twain is widely known, although several have still not yet heard it. That is that Mark Twain was in fact as pseudonym, and that the writer of such legendary books as "The Adventures of Tom Sawyer" was in fact born as Samuel Langhorne Clemens. Clemons was born in Missouri, and although he was originally born in the town of Florida, it would be a later home, Hannibal, that would have the largest impact on him. A Tom Sawyer quiz shows that both "Tom Sawyer" and "Huckleberry Finn" were set...

Read More ...