Fixed problem with tcp socket hanging.
Added socket networking classes to project to remove jar dependancies.