Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Perl Sockets question

by jimbo (Initiate)
on Feb 08, 2008 at 23:16 UTC ( [id://667105]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Sockets question
in thread Perl Sockets question

sorry about the bit :-) I am not 100% sure about what version I am using. I am using perl version 5.8.8 if thats any help. how can I tell what version f IO::Socket I am using? If I DO put the open and close around the  print socket$ $line it just outputs empty strings which is what I was meaning byt "didnt really work" Thanks, jeremy

Replies are listed 'Best First'.
Re^3: Perl Sockets question
by redgreen (Priest) on Feb 09, 2008 at 03:41 UTC
    perl -MIO::Socket -e 'print "$IO::Socket::VERSION\n"'
      I got 1.29 returned. OK, well the interesting thing is, as per my last post, the client I Was using was less than helpful, because infact when I wrote another client using a different control, it all worked fine ! HOWEVER.....it seems to output one lot of data, then I endup with a heap of spaces (hex 20) then I get the rest of the data. i.e. one part of hte data comes out, a heap of spaces, then the last of the data. There is quite a bit of data being output tho. If I output the serial data at the same time, the data is fine. I cant figure it out. Any Idea why I would getting the extra spaces? Jeremy
        I'd suggest you test your network with more stable tools, such as nc (netcat) or telnet.

        That could save you lots of trouble ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found