Since the opening of the Internet to the public in 1989, networks and their meaning to all of us have grown with an astonishing rate. Today, many people can't imagine a world without the Internet offering more information than one human could ever learn in a lifetime, gigantic improvements on many areas of software (e.g. automatic updates, posting bug reports etc.) and more forms of communication than ever existed before. Naturally, many programmers ask themselves at some point: How can I use this?
For many uses, such as connection via HTTP and FTP, libraries have been developed for Java, that offer a wide range of functions. But if you don't want HTTP or FTP, what can you use?
The answer is simple: In Java, both HTTP and FTP use the native classes Socket and ServerSocket. These are used to make very basic connections - what happens then, depends on the rest of the code. So, your Program can use them to download files, communicate with a database or even chat with other Computers!
In this Howto, I'll explain how to create applications using these basic classes.
For many uses, such as connection via HTTP and FTP, libraries have been developed for Java, that offer a wide range of functions. But if you don't want HTTP or FTP, what can you use?
The answer is simple: In Java, both HTTP and FTP use the native classes Socket and ServerSocket. These are used to make very basic connections - what happens then, depends on the rest of the code. So, your Program can use them to download files, communicate with a database or even chat with other Computers!
In this Howto, I'll explain how to create applications using these basic classes.
Comment