public boolean sendAndDestroy ( Socket socket , int flags ) { boolean ret = send ( socket , flags ) ; if ( ret ) { destroy ( ) ; } return ret ; }
Sends frame to socket if it contains data . Use this method to send a frame and destroy the data after .