-
Notifications
You must be signed in to change notification settings - Fork 574
recv dies using 'die' in FBSD #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From rns@bsd2.lsa.netUsing recipe 17.2 from the PCB, I tried sending data to a port I had opened I've tried this on several FBSD 3.2 RELEASE boxes and as well as one mjk Perl Info
|
From @tobezOn Thu, Oct 07, 1999 at 10:36:15PM -0500, Blah wrote:
I don't really actually see any mention of recv() in recipe 17.2. Anyway, the actual piece of code in question might be useful.
Cheers, |
From [Unknown Contact. See original ticket]my bad, its actually in 17.3. using the code in 17.2 to open the socket and adding the recv function -*-----------------*- $server_port = "5000"; # use any port >1024 you like, this doesnt seem to matter while ($client = $server->accept()) { # code from 17.3 this code successfully opens a socket on the port and I can establish a bash# perl testsvr.pl what i found is that if i remark out the 'die' portion as such: $client->recv($data_read, $maxlen); # slightly modified as specified by Net::Gen the script works just fine and can receive data w/o hiccup. i've tested hope this clears it up a little. mjk On Fri, 8 Oct 1999, Anton Berezin wrote:
|
From [Unknown Contact. See original ticket]On Fri, 08 Oct 1999 at 13:06:20 +0200, Anton Berezin wrote:
There is also the point that 'recv' doesn't send data - it receives it. Ian |
From @tobezOn Fri, Oct 08, 1999 at 09:35:08PM -0700, Mike Keenan wrote:
Okay, what would you expect? :-) Perl's recv() returns the address of the sender. To be able to do so it If from is non-nil, and the socket is not connection-oriented, the It is implied, but, unfortunately, not stated clearly, that for The recvfrom syscall calls in turn soreceive() internal function, which On the other hand, Perl documentation says that recv() returns undef on Basically, the Perl Cookbook is wrong suggesting to use `or die' instead I think I'll submit patches for the two ``needs to be corrected'' items Cheers, |
Migrated from rt.perl.org#1590 (status was 'resolved')
Searchable as RT1590$
The text was updated successfully, but these errors were encountered: