<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send(self_p, dest, flags):
 """ Send a frame to a socket, destroy frame after sending. Return -1 on error, 0 on success. """

        return lib.zframe_send(byref(zframe_p.from_param(self_p)), dest, flags)