Implemented socket(2) for Java.