Made socket sendpoint configurable.