Added max() macro to Socket