SWIG cleanup.
SWIG cleanup.
SWIG cleanup.
SWIG refactor to use custom tcp_endpoint.