









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










An Introduction using Java
Familiar with network basics (i.e. TCP/IP)
Familiar with basics of programming in Java
preferableIn a real project (school/work) an IDE would be
highlighting, contextual help etc, etc, etc…No auto-complete, project management tools, syntax
whole build cycle; including makeManual build tools (in many cases IDE take care of the
fi les)
command promptUsing a text editor, we need to compile using a
{ public class HelloWorldimport java.io.;/ * Some comment goes here /* { public static void main(String[] args) System.out.println("Hello World");
}
}
Look at HelloWorld.java
Make modi
fi cations to the code, re-compile
Netbeans (opensource)
Eclipse (opensource)
BlueJ (designed for introductory teaching, opensource)
IntelliJ (payware, but those who use it say it is worth it)
TCP/IP protocol suite makes the internet possible
Sockets are an abstraction
Connection point to IP using either TCP or UDP
http://java.sun.com/docs/books/tutorial/networking/sockets/index.htmlLook at:
Comes down to TCP vs. UDP
Stream vs. Datagram
A simplistic view: Guarantee vs. Performance
Socket
ServerSocket
InputStream
OutputStream
BufferedReader/InputStreamReader
DataOutputStream
http://java.sun.com/j2se/1.4.2/docs/api/
Look for Socket related classes in java.net
homepage.Write a simple client that will get the text for the Google
www.w3c.orgI will provide you with a sample client that does it for
http://ise.gmu.edu/~astavrou/courses/isa_656_F07/W3CClient.javaSample code located at: