Archive | Networking RSS feed for this section

Overview of Embedded Networked Devices

22 Apr

Overview of Embedded Networked Devices
Cheap Internet appliance technology will make controlling devices in your home, business or factory from a web page commonplace in the near future. This book will examine some of the available commercial technology you can apply to making just about any device network-enabled. We will take you step by step through [...]

Serial ports

22 Apr

Serial ports
We are now going to examine how to access your computer’s serial ports. In order to do this, we need some sort of serial device to talk to. A serial port loopback plug is probably the simplest. These are very cheap and easy to make using the proper female connector for your serial port. [...]

Implementing threads by implementing the runnable interface

22 Apr

Implementing threads by implementing the runnable interface
While we’re not going to go into detail about interfaces, simply put, an Interface in Java is a named collection of method definitions, without implementations. They are instead filled with abstract method declarations. By implementing an interface, you are essentially establishing a contract to implement all of the abstract [...]

Programming with URLs

22 Apr

Programming with URLs
All of the previous examples of networking involved the use of the Socket and ServerSocket classes. Before leaving our discussion of network programming, there’s one more topic to be touched upon, the topic of URL objects. A URL, or Uniform Resource Locator, typically refers to an Internet address such as http://java.sun.com. But in [...]

Reading and writing to a socket a slightly less simple server

22 Apr

Reading and writing to a socket (a slightly less simple server)
The server we looked at in the previous example was very simple. It suffered from the fact that the server contained a loop that would never end, forcing you to shut the window down to kill the program. Let’s look at a similar example [...]