more Socket api implement