Sorry to jump in, but 65535 as a 2 byte interger viewed as a hex value is 0xFFFF. If you re-interpret this as a signed 2 byte integer value, this is -1. Not sure if this is significant for the return status for the connection, but it may be an error status.