Annotated the socket interface and implementation.