A I managed to find the problem thanks to somebody else finding it late
last year.
With the particular verison of Perl on the Pi (I think I said 5.28) there
is a bug for the IO::Socket::Multicast module:
https://rt.cpan.org/Public/Bug/Display.html?id=130581
To fix it I went in to where the M
Hi thanks for the response.
Before I continue, at the top of the script I first borrowed for this it
had "use 5.026;". When I remove this and then alter any "say" or "break"
etc that appear the scripts continue to work as before; Mint laptop works,
Pi does not.
1) For PI:
Pi Raspbian GNU/Linux 10
Hi James,
On Sun, 5 Apr 2020 14:58:26 +0100
James Kerwin wrote:
> Hi All,
>
> I'm trying to connect to a smart bulb on my home WIFI using mcast_send
> in IO::Socket::Multicast.
>
> It works on my main Linux Mint laptop. The same script does not work on my
> Raspberry PI.
>
> Despite the scrip
Mike:
On Mon, Dec 29, 2014 at 10:23:00AM -0600, Mike wrote:
> Can anyone point me in the direction of more thorough
> documentation for the IO::Socket module? Seems like the
> documentation on perl.org is pretty limited. At least, it
> doesn't feel very thorough to me.
>
> http://perldoc.perl.org
This might be a good place to start: https://metacpan.org/pod/Socket
On Mon, Dec 29, 2014 at 4:23 PM, Mike wrote:
> Can anyone point me in the direction of more thorough documentation for the
> IO::Socket module? Seems like the documentation on perl.org is pretty
> limited. At least, it doesn't f
my error in my server script is
Can't use an undefined value as a symbol reference at server.pl ligne
412
ligne 412 is
$flags = fcntl($socket, F_GETFL, 0)or die "Can't get flags for socket:
$!\n";
Please explain me clearly
Le jeudi 22 mars 2012 à 01:45 +0100, ml a écrit :
> and though I can wal
and though I can walk to my client and server with 0x00
when i put another value of 0x02 0x03 0x04 my script fails at the
function
#-
# nonblock($socket) puts socket into nonblocking mode
sub nonblock {
my $socket = shi
What was wrong with the answer you received on Perl Monks?
2012/3/21 ml :
> hello list
> hello guru of perl
> hello all
>
>
> I seek to understand how to position the value SSL_verify_mode => 0x00.
>
> can you explain how to properly use this parameter in
> IO::Socket::SSL
>
> tha
Hi Anand,
On Tuesday 28 September 2010 06:52:26 Anand Parthiban wrote:
> Dear Team,
>
> I am a newbie to PERL,
See http://perl.org.il/misc.html#pl_vs_pl .
>
> I was studying about the Socket programming in perl and I was Doing a
> Sample Programs using IO::Socket
>
> I have Written a Sample S
2010/9/28 Anand Parthiban :
> my $new_sock = $sock->accept();
> while(<$new_sock>) {
> print $_;
> }
> close($sock);
> ###
> --
Put them in a forever loop, like:
while(1) {
my $conn = $sock->accept();
print <$conn>;
}
etc.
You may want to buy the book
On May 29, 7:55 pm, [EMAIL PROTECTED] (kenTk) wrote:
> On May 29, 2:40 pm, [EMAIL PROTECTED] (Zentara) wrote:
>
> > On 28 May 2007 08:28:35 -0700, [EMAIL PROTECTED] (kenTk) wrote:
>
> > >If there is no server or no connection this hangs for about 20 seconds
> > >and then crashes with the following
On May 29, 2:40 pm, [EMAIL PROTECTED] (Zentara) wrote:
> On 28 May 2007 08:28:35 -0700, [EMAIL PROTECTED] (kenTk) wrote:
>
>
>
> >If there is no server or no connection this hangs for about 20 seconds
> >and then crashes with the following error message.
> >The Timeout seems to make no difference a
On Wed, Aug 24, 2005 at 04:14:15PM -0400, Bob Showalter wrote:
> A connect() followed by a close() is just another form of this scenario. You
> need to have a client socket in order to detect the peer's closing the
> connection.
That clarifies things quite nicely. Thank you very much!
--
Mason
Bob Showalter wrote:
> I don't think there's any problem with IO::Socket. Even if accept
> returns a socket, you should receive an EOF on that socket when you
> try to read from it, which tells you that the peer has closed the
> connection. I think you just need to check for both situations: an
> e
Mason Loring Bliss wrote:
> On Tue, Aug 23, 2005 at 11:10:58AM -0400, Mason Loring Bliss wrote:
>
>> Hi, all! I'm learning about dealing with sockets in Perl, and I've
>> got a question about some unexpected behaviour exhibited by the
>> following test script.
>>
>> In the case where I open a co
On Tue, Aug 23, 2005 at 11:10:58AM -0400, Mason Loring Bliss wrote:
> Hi, all! I'm learning about dealing with sockets in Perl, and I've got a
> question about some unexpected behaviour exhibited by the following test
> script.
>
> In the case where I open a connection and then close it before
>
On Thu, 30 Dec 2004 22:51:00 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> ...
> > 3: Do UNIX sockets have less overhead than INET sockets?
>
> That all depends, it can go both way's. UNIX sockets, is
> comunicatting through files. Faster way would be to
> communicate through pipe's.
I thi
- Original Message -
From: Dave Kettmann <[EMAIL PROTECTED]>
Date: Thursday, December 30, 2004 5:23 pm
Subject: IO::Socket::UNIX questions
> Hello list,
Hi Dave,
>
> I am working with UNIX Sockets and have some questions that I cant
> seem to find answers to on the web.
It can be hard
> I am working with UNIX Sockets and have some questions
> that I cant seem to find answers to on the web.
Since the questions was interesting enough to me, I thought
I would research the answer. "Perl Cookbook" contains an
entire chapter on this. I am not a socket programmer!
> 1: Are UNIX soc
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jeff 'japhy' Pinyan) writes:
>The problem is that your data ends in \r\n, and the \r is a carriage
>return. If you print "jeff\rABC", you'd *see* "ABCf", because the \r
>causes the cursor to go to the beginning of the line, thus overwriting
>prev
On Oct 15, Etienne Ledoux said:
>Would anybody have any idea why chomp is deleting the value ?
>
>No matter how I try and do it. I even tried s/\n//,$value . afterwards I have
>a empty value. I don't understand what I'm doing wrong here and everywhere i
>check this it seems to be the right way to
Would anybody have any idea why chomp is deleting the value ?
No matter how I try and do it. I even tried s/\n//,$value . afterwards I have
a empty value. I don't understand what I'm doing wrong here and everywhere i
check this it seems to be the right way to do it. ?!?!
e.
On Friday 15 O
ok it seems like the chomp it stuffin it up ?
if i removed it i get the correct data but with a \n
On Friday 15 October 2004 11:56, Etienne Ledoux wrote:
> greetings,
>
> This program listens on a port for an incoming connection. Once someone
> connected it asks for a name and a password. but fo
On Thu, 2004-07-01 at 18:24, Ramprasad A Padmanabhan wrote:
> I want to write a basic http download ( text/binary) script using
> IO::Socket. Does anyone have any examples anywhere.
Thanks all,
I found a basic and excellent example. ( It pays to be patient when
using google)
http://perl.active-ve
Ramprasad A Padmanabhan wrote:
I want to write a basic http download ( text/binary) script using
IO::Socket. Does anyone have any examples anywhere.
I know ,everyone must be wondering why I cant use ready modules like
LWP.
Well I want to auto transfer files to different remote machines. and
these m
> LWP requires none of those tools. It does exactly what you are
> describing: it opens a socket and uses the HTTP protocol to talk to the
> server.
>
> Randy.
>
Right. Do you have any sample http client script , using IO::Socket
If I get some sample script , my work will be reduced a lot
Hi,
I've read the perl doc but it was not usefull any how i fixed it, what i was
trying to do is to send data from a Visual basic program to a perl program,
then from perl to a visual basic program
thanx anyways guys,
Anthony
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
I'm not sure I totally understand all of your question, but talking over
an IO::Socket is pretty darn simple, if we're talking about a line
oriented protocol. You can use what you have always used for Perl input
and output:
use IO::Socket::INET;
my $socket = IO::Socket::INET->new( PeerAddr
on Sun, 01 Sep 2002 15:15:27 GMT, [EMAIL PROTECTED] (Anthony) wrote:
> I'm trying to learn IO::Socket and i have a little problem is that
> i DO NOT know how to receive data i use the recv function but
> doesn't work at all.
[...]
> But I can send data to a perl program but I don't know how to
At 09:04 AM 5/4/02 -0700, drieux wrote:
my question is why the use of the while() construct in
> http://www.perldebugged.com/downloads/proxylog.txt
>
>hence the need to have the last LABEL construction???
>
>especially as this appears to avoid the call to your
>shutdown function - which s
On Saturday, May 4, 2002, at 08:19 , Peter Scott wrote:
[..]
> You got a true result. The connection closed properly. The value of $!
> is irrelevant.
my complements.
my question is why the use of the while() construct in
http://www.perldebugged.com/downloads/proxylog.txt
hence the
On Friday, May 3, 2002, at 11:05 , Keddie, Diane wrote:
[..]
>
> my $close=close($sock);
>
> The socket connection works, and we get the appropriate information back
> from our mainframe scripts. However, the return value from close($sock)
> is
> 1 with "Bad file number" in $!. Should we be co
At 02:05 PM 5/3/02 -0400, Keddie, Diane wrote:
>We are working on an application that makes a socket connection to our
>mainframe to get information. The code we use for the socket connection is
>as follows:
>[snip]
>my $close=close($sock);
>
>The socket connection works, and we get the appropria
> -Original Message-
> From: Jorge Goncalvez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 22, 2002 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: Re:IO::Socket::Inet
>
>
> Hi, i have this
> use IO::Socket;
> $port=21;
>
> $server="155.132.48.23";
> #$server="192.40.54.41";
>
> $soc
Veeraraju_Mareddi wrote:
> Dear List,
Which list? You sent this to two lists, as far as I can tell. In Usenet,
that would be the equivalent of crossposting, and then I consider it good
etiquette to set a "Followup-To" header directing answers to one group only.
Setting a Reply-To header here migh
On Wed, 6 Jun 2001, Ondrej Par wrote:
> On Wednesday 06 June 2001 18:25, Craig Moynes/Markham/IBM wrote:
> > So I fail to see the problem. It seems to work if I change the use line
> > to: "use IO::Socket;" but that is 'incorrect' or at the very least
> > imprecise right ?
> >
> >
> That's corre
On Wednesday 06 June 2001 18:25, Craig Moynes/Markham/IBM wrote:
> So I fail to see the problem. It seems to work if I change the use line
> to: "use IO::Socket;" but that is 'incorrect' or at the very least
> imprecise right ?
>
>
That's correct. With 'use', you are saying what should be the n
37 matches
Mail list logo