Implemented my own socket(combined with the port class)