D4D Technologies Interview Question

How would you create a socket from scratch