You can use
https://gist.github.com/raunakkathuria/633f46222f7d3a40c2ecd0234e1cb3e0 as
a reference example of socket connection using IO::Async::*
Hope that's useful.
On Mon, Apr 5, 2021 at 12:00 AM Shlomi Fish wrote:
> On Fri, 2 Apr 2021 13:46:35 -0400
> Uri Guttman wrote:
>
> > On 4/2/21 4:4
On Fri, 2 Apr 2021 13:46:35 -0400
Uri Guttman wrote:
> On 4/2/21 4:47 AM, stefano cerbioni wrote:
> > hi i try to recive a stream string by a client (write in C++) , if
> > i use netcat , work ok but when i use a script in perl work
> > partially , recive "Connection recieved from $name\n
On 4/2/21 4:47 AM, stefano cerbioni wrote:
hi i try to recive a stream string by a client (write in C++) , if
i use netcat , work ok but when i use a script in perl work
partially , recive "Connection recieved from $name\n";, but $name
is blank , why ?? thanks
this is a script
don'
Hi,
Refer here
https://perldoc.perl.org/perlipc#Sockets%3A-Client%2FServer-Communication
use
my($port, $iaddr) = sockaddr_in($client_addr);
then
gethostbyaddr($iaddr, AF_INET )
Regards,
Heince
On Fri, Apr 2, 2021 at 3:48 PM stefano cerbioni wrote:
> hi i try to recive a stream string by a c
Thank you so much Jim.
-Chris
On Aug 30, 2012, at 6:46 AM, Chris Stinemetz wrote:
> Hello List,
>
> I am creating a program, where for the first time, I will be reading
> in data from a socket port.
>
> I am a bit confused about how to print the processed data while still
> reading in data from the port. Thus far, I have on
Thank you Peng. Are there any other suggestions from the list?
Thanks in advance,
Chris
You might take a look at AnyEvent Intro:
http://search.cpan.org/~mlehmann/AnyEvent-7.02/lib/AnyEvent/Intro.pod
在 2012-8-30,下午9:46, Chris Stinemetz 写道:
> Hello List,
>
> I am creating a program, where for the first time, I will be reading
> in data from a socket port.
>
> I am a bit confused a
On 11/26/07, Ryan Moszynski <[EMAIL PROTECTED]> wrote:
> here is the client being run, i am unsuccessfully trying to print
> "input>" at the beginning of the 10 and 13 lines, which were user
> input:
> $handle->autoflush(1); # so output gets there right away
That's the right ide
Hi ,
Thanks for providing me useful information.
Can you also tell me can i call a web service from the perl.
Regards,
Raan
On Nov 14, 7:33 pm, [EMAIL PROTECTED] (Jeff Pang) wrote:
> On Nov 14, 2007 5:45 PM, Raan <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > I have to do some kind of socket pr
On Nov 15, 2007 2:10 PM, Raan <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> Thanks for providing me useful information.
>
> Can you also tell me can i call a web service from the perl.
>
What do you mean by calling a web service from the perl?
If you want to access web pages with perl you can use LWP libs
On Nov 14, 2007 5:45 PM, Raan <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have to do some kind of socket programming in perl .
>
> Is it possible to do some kind of socket programming in perl.
>
Yes it's very possible. Perl's socket functions are strong enough to
build any network application you w
[EMAIL PROTECTED] wrote:
On Aug 20, 12:12 pm, [EMAIL PROTECTED] (Saran j jegan) wrote:
Do any suggest me successful module for socket communication
in perl under windows environment and some prerequisite for it.
There are dump of modules ,which might be the best one from yours
experi
On Aug 20, 12:12 pm, [EMAIL PROTECTED] (Saran j jegan) wrote:
> Hello,
> Do any suggest me successful module for socket communication
> in perl under windows environment and some prerequisite for it.
There are dump of modules ,which might be the best one from yours
experience, will be gr
[EMAIL PROTECTED] wrote:
Do any suggest me successful module for socket communication
in perl under windows environment and some prerequisite for it.
http://search.cpan.org/search?query=socket
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe
Hi Practical Perl,
On 5/22/06, Practical Perl wrote:
Hello,lists,
We write a simple socket script using IO::Socket module.When this script
connect to peer server (both server and my scripts are in the same LAN),it
always dropped and print these errors:
IO::Socket::INET: connect: Connection refu
>
> I am working with UNIX Sockets and have some questions that I
> cant seem to find answers to on the web.
>
> 1: Are UNIX sockets bi-directional?
>
> 2: If so, what is the proper way to 'setup' the connection?
> (will post what I have below)
>
> 3: Do UNIX sockets have less overhead tha
On Fri, 5 Nov 2004, Rob Genovesi wrote:
>
> I'm looking to write a basic Perl server that will communicate via
> TCP. I'd also like the program to be able to do other things while it
> waits for client connections. Can anyone recommend that best way to do this?
>
> For example: A perl daem
> -Original Message-
> From: Ramprasad A Padmanabhan
> [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 02, 2004 9:58 AM
> To: Randy W. Sims
> Cc: perl beginners
> Subject: Re: :Socket for http download
>
>
>
> > LWP requires none of those
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 machi
Werner Otto wrote:
Keep the discussion on the list please.
> Bob Showalter wrote:
> > ...
> > What platform and what version of Perl and IO::Socket? If I fix the
> > missing comma, it times out properly for me with Perl 5.6.1 on
> > FreeBSD 4.10
> >
> SunOS 5.8 This is perl, v5.8.0 built for s
Werner Otto wrote:
> Hi All,
>
> I have the following problem.
>
> _Code:_
> #!/usr/bin/perl
> use IO::Socket;
>
> my $host=shift @ARGV or die 'need hostname';
> my $port=shift @ARGV or die 'need port number';
> my $timeout=1;
> my $socket=IO::Socket::INET->new(PeerAddr=> $host,
> PeerPo
> On Jun 30, 2004, at 3:49 AM, Bastian Angerstein wrote:
>
> >
> > Hello, there
> >
> > I am progarmming a client server passed solution.
> >
> > My Question here ist which Modul I should use.
> >
> > I already noticed that the IO::Socket and the NetServer::Generic
> > are both easy to use.
> >
>
On Jun 30, 2004, at 3:49 AM, Bastian Angerstein wrote:
Hello, there
I am progarmming a client server passed solution.
My Question here ist which Modul I should use.
I already noticed that the IO::Socket and the NetServer::Generic
are both easy to use.
My question is does a IO::Socket server handle
On May 31, 2004, at 11:10 AM, <[EMAIL PROTECTED]> wrote:
Hi James,
Can you suggest me what this POE is?
POE or Perl Object Environment is a multitasking framework.
Where can I get info regarding this?
http://poe.perl.org/
James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
IONS)
Cc: [EMAIL PROTECTED]
Subject: Re: [Socket Programming]: Need info for Client / Server
scenario
On May 30, 2004, at 11:06 PM, <[EMAIL PROTECTED]> wrote:
> Hi,
Howdy.
> I need some good links for understanding socket programming (Client /
> Server programming).
Not a link
On May 30, 2004, at 11:06 PM, <[EMAIL PROTECTED]> wrote:
Hi,
Howdy.
I need some good links for understanding socket programming (Client /
Server programming).
Not a link specifically, but I feel I would be letting you down if I
didn't mention Network Programming with Perl. That is an excellent
b
This is a pritty involved field for me.
In perl FORKING will create a copy of memory of the existing thread so Data
sharing within the program is not posible
All the veriables are local to the thread.
To share data the stratagy I used is as follows.
The master thread or the data producer updates
[EMAIL PROTECTED] wrote:
I need some good links for understanding socket programming (Client /
Server programming).
I have written some scripts for multiple clients and a server (Forking
Server).
But I am facing some problems - the server data has to be shared among
all the child processes - does
Try "Perl 5.8.0 Documentation: perlipc".
All you want to start socket is there.
Josimar
- Original Message -
From: "awards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 1:08 PM
Subject: Socket
> Hi,
>
>
> I would like to know if it is possible to tran
Why not just use FTP (File Transfert Protocol) ?
See Net::FTP module
José.
-Original Message-
From: awards [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 6:09 PM
To: [EMAIL PROTECTED]
Subject: Socket
Hi,
I would like to know if it is possible to transfer files from one com
On Tue, Jul 15, 2003 at 05:18:38PM +0200, Jose M.Herrera wrote:
> I use RedHat linux 7.3 and I have installed perl but when I try to use sockets
> appears these errors:
>
> Can't locate socket.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux
> /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_p
Hi ,
I got the answer Thanks
Please ignore the previous mail from me
rgds
rajeev
-Original Message-
From: Pandey Rajeev-A19514
Sent: Tuesday, July 15, 2003 3:20 PM
To: [EMAIL PROTECTED]
Subject: Socket Problem
Hi,
I have a problem with sockets that goes like this..
I want to create
> -Original Message-
> From: Gabor Urban [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 27, 2003 6:13 AM
> To: [EMAIL PROTECTED]
> Subject: Socket question
>
>
> Hi,
>
> I am still working on a socket problem at low level, and there is
> something I wander. Are Perl socket bidirectional?
On Mon, 24 Mar 2003 21:24:32 -0500, Mark G <[EMAIL PROTECTED]> wrote:
Hello Stefan,
Ok, I replied to the previous response to my post and it apparently
didn't
go through, but it's irrelevant anyway. (My response to the "why
bother"
was summed up with "so I can learn how it's done.")
good poin
fic IP then it may not be listening to localhost and I wouldn't be
> able to connect, but the only IP it should listen on
> if that's the case is my '192.168.x.x' IP from my router. I
> tried setting to that IP as well with no luck
could be, if you want send me your
On Sun, 23 Mar 2003 22:43:16 -0500, Mark G <[EMAIL PROTECTED]> wrote:
Hi Stefan,
If you have two different sockets open, one should not block the other no
meter what kind of a socket that is. Send some of the code, might help us
help you.
Mark
Ok, I replied to the previous response to my post and
Hi Stefan,
If you have two different sockets open, one should not block the other no
meter what kind of a socket that is. Send some of the code, might help us
help you.
Mark
- Original Message -
From: "Stefan Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 22,
> "Stefan" == Stefan Johnson <[EMAIL PROTECTED]> writes:
Stefan> I've googled for this information and not found much.
Stefan> Probably just haven't found the right combination of
Stefan> keywords. I have a project I'm doing to learn about
Stefan> IRC better. I'm writing a bot in perl (witho
On Wednesday, April 3, 2002, at 05:48 , Bruno Figueira wrote:
[..]
>
> I guess that from this point you can improve your scripts. A socket
> connection is just an interface between two scripts/applications. You'll
> have to build your protocols above this "layer" so that one side is making
> res
Morgan,
Just after the "print $buf" line in the server code, add:
$cmd=`$buf`;
print $new_sock "$cmd";
You actually don't need to use a client a this time. Certainly you can, but,
to make this simpler, just telnet to the server in that port (telnet
192.168.1.120
Network Programming with Perl, by Lincoln Stein
$30 @ Amazon:
http://www.amazon.com/exec/obidos/ASIN/0201615711/qid=1017251419/sr=1-2/ref=
sr_1_2/103-7134611-8896620
-
Scott Wahlstrom
root - Lab for Advanced Computing
and the Nation
quot;) {
system("/usr/local/bin/onenet/OTN/dialin_changepassword.pl
$ldapargs{uid} $ldapargs{pass
word} $ldapargs{consult}");
}
}
}
Regards,
Scott L Ryan
OneTel.Net ISP Engineer
-Original Message-
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: 06 February 20
> -Original Message-
> From: Scott L Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 06, 2002 7:29 AM
> To: [EMAIL PROTECTED]
> Subject: socket help, last time i promise ;)
>
>
> I want to display a message when a client connects to the server.
>
> msg>
>
> right now, I c
Scott L Ryan wrote:
>I want to display a message when a client connects to the server.
>
>msg>
>
>right now, I cannot seem to display that message until I have received
>something from the client and I want to display it before the client
>sends anything. puzzling..
>
>#!/usr/local/bin/perl
>
Sorry, for the Italian, but for an error i send here mail mail insted of
perl-it !
I'm tryied to use send(SO,"GET / HTTP/1.0\r\n\r\n",0) and it work.
Thanks
Walter
Bob Showalter wrote:
>>-Original Message-
>>From: walter valenti [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesd
> -Original Message-
> From: walter valenti [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 11:11 AM
> To: [EMAIL PROTECTED]
> Subject: socket
>
>
> Hola,
>
> qualcuno sa dirmi perchè:
(Using translator.dictionary.com, I see that the question is why the first
example "
-
From: John W. Krahn [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 3:30 PM
To: [EMAIL PROTECTED]
Subject: Re: [Socket] Question
[EMAIL PROTECTED] wrote:
>
> Friends,
>
> I am trying to learn little bit of socket programming in Perl. I tried one
> of the code sn
[EMAIL PROTECTED] wrote:
>
> Friends,
>
> I am trying to learn little bit of socket programming in Perl. I tried one
> of the code snippet from Perl cookbook as a starting point. I am tring to
> 'talk' to my SMTP mail server.
You should probably use Net::SMTP.
> But when I type HELO through th
> -Original Message-
> From: Daniel Gardner [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 17, 2001 6:50 PM
> To: [EMAIL PROTECTED]
> Subject: socket closed
>
>
> Hi,
>
> i have code that looks something like this:
>
> my $sock = IO::Socket::INET->new(%args);
> my $sel
On Mon, Sep 24, 2001 at 11:20:10AM -0400, Kingsbury, Michael wrote:
> Any ideas on how to set the TCP options on socket connections?
> setsockopts seems only to deal with the socket layer.
Generally, the Perl interface to TCP/IP is equivalent to the C interface.
What would be the equivalent cod
There's a packege Net::RawIP, to built packets TCP, UDP, ICMP, and capture
packets (is a wrapper for libpcap).
Work only on *nix system.
Walter
> Any ideas on how to set the TCP options on socket connections? setsockopts
> seems only to deal with the socket layer.
>
> -mike
>
> --
> To
> -Original Message-
> From: Tjousk [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 07, 2001 10:36 PM
> To: [EMAIL PROTECTED]
> Subject: socket()
>
>
> I have never used perl before today.
> I am trying to run a perl script in windows that works fine
> in linux, but it
> keeps stop
At 12:12 PM 8/28/01 +0530, Veeraraju_Mareddi wrote:
>Dear Friends,
>
>I have a small task of Doing/Running some commands on A remote Machine Using
>Sockets Communication. Till Now I was not familiar with sockets. Could
>anybody of You Please tell me How to get basic knowledge of SOCKET
>PROGRAMING
Scott,
In article <[EMAIL PROTECTED]>, Scott Blatz wrote:
>I cannot get a simple script to work. I get the following error when I
>debug it.
>
>1 Can't locate socket.pm in @INC (@INC contains:
>/usr/lib/perl5/5.6.0/i686-linux /usr/lib/perl5/5.6.0
>/usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/l
55 matches
Mail list logo