Java based chat and file-transfer application