zStatus zSocket_Destroy(zSocket socket);
Destroys a zSocket object.
If the socket is connected, this function will close the connection before destroying the socket object.
zSocket.h