Permalink
Switch branches/tags
Nothing to show
Find file
a498558 Dec 14, 2011
19 lines (12 sloc) 466 Bytes
from twisted.internet import reactor
import dds
import twistedds
class TestProtocol(object):
def connectionMade(self):
print 'connection made!'
def messageReceived(self, msg):
print 'message received:', msg
def connectionLost(self, reason):
print 'connection lost! reason:', reason
twistedds.connectDDS(dds.DDS().get_topic('t2', dds.Library('./libddsmessages_c.so').HydrophoneMessage), TestProtocol())
reactor.run()