7
Plugin *create_plugin()
14
Net::Net() : QServerSocket(7539, 10), Plugin()
17
mFDs.setAutoDelete(true);
18
connect(napp->player(), SIGNAL(newSong()), SLOT(newSong()));
26
void Net::newConnection(int fd)
28
QSocket *s=new QSocket;
35
if (!napp->player()->current())
38
for (QSocket *i=mFDs.first(); i!=0; i=mFDs.next())
41
line=napp->player()->current()->title().latin1();
43
::write(i->socket(), (const void*)line.data(), line.length());
49
for (QSocket *i=mFDs.first(); i!=0; i=mFDs.next())