I am doing something similar, but on a smaller scale.  My lifeboat is
the book Perl by Example by Ellie Quigley.  One of the best investments
I ever made in a book.  (The Bible was best, but that's a diferent
topic.)

In that book she outlines how to open a socket and pass info back and
forth.  It will save having to coordinate a cgi call with some other
kind of data transfer.  I wrote a single daemon that listens for data on
a port, interprets that data and sends a response back.  The client
receives the data back, closes the connection and the server goes back
to wait mode.  Not all that tough when Ellie gives you 90% of the code
on the CD.

HTH

-Michael

>>> Soumyadeep nandi <[EMAIL PROTECTED]> 03/18/03 02:59AM >>>
Hi All,

As a naive perl programmer, I want to get rid of a
problem, for that, I am keen, awaiting your
suggestions. I doubt, I could not present my case in
front of you properly. Anyway, my problem spins around
the following.

The module I am working with, need some networking.
Let me go little bit more detail about it. The module
I am working with works somewhat as follows:

I need to send some request from my machine (i.e.
client) to the server and the server will return me
back the response. My request will be a flat file and
the server will process the file (some database
search) and will return me back another flat file.
Thus, in my module I want to send thousands of such
files, one at a time and receive the processed file
back one at a time. The entire process must work in
synchronization.

So, I have two plans to work out the situation, these
are as follows:

1. With LWP perl module.

        First I will make a perl script that will put   the
request to the server.

        A CGI script in the server receive the request and
will run some system commands and prints the output
file as a response.

        Again the perl file on client site will receive the
response as a html page and parse the html to text
file.

2. The other one is IO::Socket::INET perl module.

        A perl script in both ends (i.e. client and server)
will receive and response the requests.

Now, what is bothering me in this regard, is as
follows..

Which way will be the better way for my work? So that
I can reduce the over heads and time (probably the
second one). If I need to work with the second option
what should be my steps?

With regards 
Soumyadeep

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to