def ping(dst, count, inter=0.2, maxwait=1000, size=64):
    def _then(result, p):
        p.stopListening()
        return result

    d = defer.Deferred()
    p = ICMPPort(0, ICMPPing(d, dst, count, inter, maxwait, size), "", 8192, reactor)
    p.startListening()

    return d.addCallback(_then, p)
Returns a file-like object for writing the body of the message.
dataset/ETHPy150Open calston/tensor/tensor/protocol/icmp.py/ping--crossover with--dataset/ETHPy150Open Southpaw-TACTIC/TACTIC/src/context/client/tactic-api-python-4.0.api04/Lib/MimeWriter.py/MimeWriter.startmultipartbody