ucsb-cs56-projects / cs56-networking-expression-evaluator

MIT License
0 stars 1 forks source link

Create basic server #2

Closed jaeaster closed 6 years ago

jaeaster commented 7 years ago

Create a server that opens a TCP connection and listens on port 3000 for an incoming connection.

See http://www.java-samples.com/showtutorial.php?tutorialid=1167 for a short introduction to TCP sockets in Java.

Also see Chapter 15 in Head First Java (your textbook) to get an in-depth explanation of Networking and Threads.

This will be one of the first pieces of code in this legacy code project, which will exist for years to come. Think carefully about your design decisions e.g. don't just throw your code in Main, consider making a Server class with server-socket, connection-socket, and port member variables.

300 points