ensure only one socket task is outstanding at a time. allow remote port to be 0, will use OMAPI_PROTOCOL_PORT. cleaned up error handling so that everything is freed when something fails.
ensure only one socket task is outstanding at a time. allow remote port to be 0, will use OMAPI_PROTOCOL_PORT. cleaned up error handling so that everything is freed when something fails.