Writes the next outbound datagram packet to
buffer and returns the packet destination socket
address. The write must not overflow the buffer. If an
overflow does occur, the buffer contents are discarded.
buffer - write the datagram packet to this buffer.
the destination address for the datagram packet.
java.util.EmptyStackException - if the buffer writer has no message to send.