Esempio n. 1
0
    def putx(self, srcname, time, packet, nbytes):
        """Put a packet on an orb, returning the pktid of the output packet"""

	try:

            ret = _orb._orbputx(self._orbfd, srcname, time, packet, nbytes)

	except _orb._ElogException, _e: 

            stock._raise_elog(_e)
Esempio n. 2
0
    def putx(self, srcname, time, packet, nbytes):
        """Put a packet on an orb, returning the pktid of the output packet"""

        try:

            ret = _orb._orbputx(self._orbfd, srcname, time, packet, nbytes)

        except _orb._ElogException, _e:

            stock._raise_elog(_e)
Esempio n. 3
0
 def putx(self, srcname, time, packet):
     return check_error(
         _orb._orbputx(self._fd, srcname, time, packet, len(packet)),
         PutXError)
Esempio n. 4
0
    def putx(self, srcname, time, packet, nbytes):
        """Put a packet on an orb, returning the pktid of the output packet"""

        return _orb._orbputx(self._orbfd, srcname, time, packet, nbytes)
Esempio n. 5
0
 def putx(self, srcname, time, packet):
     return check_error(_orb._orbputx(self._fd, srcname, time, packet,
         len(packet)), PutXError)