Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Socket problems under Windows

by blogan (Monk)
on Apr 15, 2002 at 13:36 UTC ( [id://159180]=note: print w/replies, xml ) Need Help??


in reply to Re: Socket problems under Windows
in thread Socket problems under Windows

I've stripped my code down to this:
use Socket; my $proto = getprotobyname('tcp'); socket(SOCK, PF_INET, SOCK_STREAM, $proto) or die "socket: $!\n"; print "Good\n";
And that won't even work. I set FILES=200 and it was originally set to 150. Win32::Internet won't work because I can't use it at a socket level. The boxes do have TCP installed. Like I said, somehow Java can open up a socket and communicate. Of course, Java may be able to open sockets under Novell somehow. The machines are Windows 98. Also, rebooting will not help. Deep Freeze is installed, so you could wipe out the entire file system, install any program, delete registry keys and the machine we be the same as before after reboot. Maybe I'll write a small script that does a bunch of OPEN calls and see how many I can do there. Of course, the code does work on my box at home (98) and a laptop I borrowed (XP), so it must be something either with Novell or something else.

Replies are listed 'Best First'.
Re: Re: Re: Socket problems under Windows
by chanio (Priest) on Mar 25, 2003 at 03:27 UTC
    Read at Perl 5 by Example (David Medinets-1997): Check the values returned at $proto. You should write all the get...() like this... my $proto = getprotobyname('tcp)||6; ##just in case you don't get any value as returned... hope it helps Alberto

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found