Re: socket recive problem

2021-04-04 Thread Raunak Kathuria
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

Re: socket recive problem

2021-04-04 Thread Shlomi Fish
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

Re: socket recive problem

2021-04-02 Thread Uri Guttman
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'

Re: socket recive problem

2021-04-02 Thread thelip sia
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

Re: socket port

2012-09-02 Thread Chris Stinemetz
Thank you so much Jim. -Chris

Re: socket port

2012-09-02 Thread Jim Gibson
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

Re: socket port

2012-09-02 Thread Chris Stinemetz
Thank you Peng. Are there any other suggestions from the list? Thanks in advance, Chris

Re: socket port

2012-08-30 Thread Peng Yonghua
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

Re: socket client, can't print w/o newline

2007-11-26 Thread Tom Phoenix
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

Re: socket programming in perl

2007-11-15 Thread Raan
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

Re: socket programming in perl

2007-11-15 Thread Jeff Pang
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

Re: socket programming in perl

2007-11-14 Thread Jeff Pang
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

Re: Socket Programming with Perl

2007-08-20 Thread Gunnar Hjalmarsson
[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

Re: Socket Programming with Perl

2007-08-20 Thread Saran . j . jegan
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

Re: Socket Programming with Perl

2007-08-20 Thread Gunnar Hjalmarsson
[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

Re: Socket Problems

2006-05-22 Thread David Romano
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

RE: :Socket::UNIX questions

2004-12-31 Thread Jim
> > 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

Re: socket server

2004-11-05 Thread Owen Cook
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

RE: :Socket for http download

2004-07-02 Thread NYIMI Jose (BMB)
> -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

RE: :Socket for http download

2004-07-01 Thread Bob Showalter
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

RE: :Socket

2004-07-01 Thread Bob Showalter
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

RE: :Socket

2004-07-01 Thread Bob Showalter
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

Re: Socket or NetServer::generic???

2004-06-30 Thread Wiggins d Anconia
> 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. > > >

Re: Socket or NetServer::generic???

2004-06-30 Thread James Edward Gray II
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

Re: [Socket Programming]: Need info for Client / Server scenario

2004-05-31 Thread James Edward Gray II
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

RE: [Socket Programming]: Need info for Client / Server scenario

2004-05-31 Thread suresh.pasupula
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

Re: [Socket Programming]: Need info for Client / Server scenario

2004-05-31 Thread James Edward Gray II
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

Re: [Socket Programming]: Need info for Client / Server scenario

2004-05-30 Thread LRMK
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

Re: [Socket Programming]: Need info for Client / Server scenario

2004-05-30 Thread Andrew Gaffney
[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

Re: Socket

2003-08-14 Thread Josimar Nunes de Oliveira
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

RE: Socket

2003-08-14 Thread NYIMI Jose (BMB)
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

Re: Socket

2003-07-15 Thread Steve Grazzini
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

RE: Socket Problem (I got the answer) Thanks

2003-07-15 Thread Pandey Rajeev-A19514
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

RE: Socket question

2003-06-27 Thread LoBue, Mark
> -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?

Re: Socket Problem

2003-03-24 Thread Stefan Johnson
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

Re: Socket Problem

2003-03-24 Thread Mark G
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

Re: Socket Problem

2003-03-24 Thread Stefan Johnson
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

Re: Socket Problem

2003-03-23 Thread Mark G
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,

Re: Socket Problem

2003-03-22 Thread Randal L. Schwartz
> "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

Re: :Socket need help

2002-04-05 Thread drieux
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

RE: :Socket need help

2002-04-03 Thread Bruno Figueira
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

Re: Socket Server

2002-03-27 Thread Scott Wahlstrom
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

RE: socket help, last time i promise ;)

2002-02-06 Thread Scott L Ryan
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

RE: socket help, last time i promise ;)

2002-02-06 Thread Bob Showalter
> -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

Re: socket help, last time i promise ;)

2002-02-06 Thread walter valenti
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 >

Re: socket

2002-01-30 Thread walter valenti
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

RE: socket

2002-01-30 Thread Bob Showalter
> -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 "

RE: [Socket] Question

2001-11-09 Thread RArul
- 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

Re: [Socket] Question

2001-11-09 Thread John W. Krahn
[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

RE: socket closed

2001-10-18 Thread Bob Showalter
> -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

Re: Socket Connections & TCP options associcated with them.

2001-09-24 Thread Michael Fowler
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

Re: Socket Connections & TCP options associcated with them.

2001-09-24 Thread walter valenti
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

RE: socket()

2001-09-10 Thread Bob Showalter
> -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

Re: Socket Programming

2001-08-28 Thread Peter Scott
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

Re: Socket Help Newbie

2001-07-25 Thread John Fox
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