in reply to Perl client blocking communication from server

Hello i am working with socket programming in Perl. It is a server client script. My server is able to handle multiple connections but my client hangs when i try to receive data from server. Client and server exchange two messages before communication between server and client can start. My client hangs when i try to catch the second message from the server. I can't figure why my clients get stuck at $handle->recv($nick_check,255);. I am new to socket programming any help would be greatly appreciated.

Hi,

Please explain what  $handle->recv($nick_check,255); means , exactly what its supposed to do

Replies are listed 'Best First'.
Re^2: Perl client blocking communication from server
by PerlNewbie94 (Novice) on Oct 17, 2019 at 09:27 UTC
    Hello, Thanks for your response. With handle->recv($nick_check,255) i am trying to catch "OK" send from server after receiving a nickname from client.