More socket APIs