public the send packet API.