[ADD] base socket implementation