Network Programming :: Projects :: Latin Dictionary
Create a program that connects to dict.org and translates any words the user enters on the command line into Latin. Here is what you need to know about the dict.org website:
- You should use port 2628
- You need to write to the server in the following format: "DEFINE fd-eng-lat " + wordToTranslate + "\r\n"
- If the resulting line starts with 250 then it returned a result.
- If the resulting line starts with 552 then there was no match.
Here is a sample run of the program:
java LatinDictionary earth world Rome earth /əːθ/ humus; tellus; terra No definitions found for world Rome /roum/ Roma
You should also build a daytime server like the one demonstrated in the lesson. Create a way to get the date and time from the server in your program. It should connect through a secure socket. You should also create a server log for your daytime server that logs requsts and errors.