Add assign API for Socket
Merge pull request #153 from knewter/feature/add_socket_assign_api

Add assign API for Socket