def send_and_close message, flag = 0
      rc = sendmsg message, flag
      message.close
      rc
    end
def send_and_close message, flag = 0
      rc = sendmsg message, flag
      message.close
      rc
    end
Sends a message. This will automatically close the +message+ for both successful
 and failed sends.

 @param message
 @param flag
   One of @0 (default)@ and @XS::NonBlocking

 @return 0 when the message was successfully enqueued
 @return -1 under two conditions
   1. The message could not be enqueued
   2. When +flag+ is set with XS::NonBlocking and the socket returned EAGAIN.

 With a -1 return code, the user must check XS.errno to determine the
 cause.