You are replacing every connection with a new one each time so you never
save the previous ones:

self.clientConnection = self.tcpServer.nextPendingConnection()

What you probably want is some data structure to keep them all together:

client = self.tcpServer.nextPendingConnection()
self.clientList.append(client)


On Thursday, December 27, 2012, PBLNRAO Kiran wrote:

> I am trying to implement a TCP messaging system in maya.
>
> Here is my code. Its currently external to maya.
> http://pastebin.com/0GpuQhkG
>
> In this i am able to send message to target system by entering system name
> in bottom most line edit. last but one is for message to send.
>
> When a client receives message a message box will be popped.
>
> Some times its working and some times its not working.
>
> I made this modules to send message to multiple systems by entering
> systems in systems box separating them with comma (,)
>
> Here The major issue is, if i have more that 1 system in the systems list,
> i am able to send message only for the last person but not for the
> remaining. If i type only 1 system then everything is fine.
>
> Can any one help me how can i solve this issue.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To post to this group, send email to 
> [email protected]<javascript:;>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:;>.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].


Reply via email to