1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
5 Example Shoutcast client. Run with:
7 python shoutcast.py localhost 8080
12 from twisted.internet import protocol, reactor
13 from twisted.protocols.shoutcast import ShoutcastClient
15 class Test(ShoutcastClient):
16 def gotMetaData(self, data):
19 def gotMP3Data(self, data):
23 port = int(sys.argv[2])
25 protocol.ClientCreator(reactor, Test).connectTCP(host, port)