in reply to tcp server (bidirectional)

See Simple threaded chat server and the multi-echo section. What you need to do is keep an array of active clients, or you can use the socket method "connected", to test each connection before sending to it.

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: tcp server (bidirectional)
by igor1212 (Novice) on Dec 07, 2008 at 17:28 UTC
    Hello BrowserUk and Zentara

    Really thanks for your information's.- You were right about closing connections
    I probably didn't wait enough and when checking connections and port numbers they were still open.
    In previously message I meant different ip's from clients, not that they are connecting to different server ip - Sorry to misslead you.
    I resolved the problems for sending a command to selected client, without waiting him to respond.
    I've adopted a chat script that suggested beneath - Works perfectly!

    Thanks again to both of you for helping me!

    Regards, Igor V.