tcp ssl function implemented, need to test