in reply to help me on socket programming

It seems like your while loop has no meaning. Maybe you are confused with a server socket.

Replies are listed 'Best First'.
Re^2: help me on socket programming
by bh_perl (Monk) on Jul 12, 2013 at 06:56 UTC

    hi..

    If I want to pull data from the legacy switch to our server. Is it means my server is a CLIENT and the switch is SERVER right ?. If correct, it is mean that I have to write client socket programming on my server right ?

    Please correct me