Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl client blocking communication from server

by Anonymous Monk
on Oct 17, 2019 at 06:55 UTC ( #11107580=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11107580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2019-11-22 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (108 votes). Check out past polls.

    Notices?