🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #183

Re: Help in Reading the serial or parallel port

#183
From: Moises Garcia Cogolludo
Date: Tue, 13 Jun 2000 00:00
40 lines
2459 bytes

Jaime Heiss wrote:

> Hello.
> I need assistance in order to make the following application:
>
> I have a c++ program that reads a "1" when someone enters a room. I need
> to be able to send a message through internet to a client telling that
> someone enters and when that happend, the client must download a file
> from the server and store it in its hard disk.
> So the question is:
> 1) How can i send messages from C++ thru internet, or even better, how
> can I read the parallel port in java and send a mesage when something
> happend?

You can send messages thru internet via Socket's

In Java you can't access the serial or pararell ports, but there is an API,
the Java Communications API which can do it. You can get it at java.sun.com
in the Products and API's section.

>
> 2)How can i Sava a remote file from a defined URL with different names
> each time, whe some kind of message is received?

O.K. this question depends on what do you want to do, you can make something
to create new names and save the file with de new name created, or you can
add a number to the end of the file name (not the extension) that you will
increment after you save the file.

>
>
> My Java skills are  obviously none, so please Help me.
> Should I use CGI instead?
>
> Thanks in advance,
> Jaime Heiss

Sorry about my English, I'm Spanish.
Technical Details
Message-ID: <3946323C.F4DFFA74@wanadoo.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39457BE6.23058244@cec.uchile.cl>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb3cb,b97f5e0425db66b0
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: 113ae9,b97f5e0425db66b0
X-Google-Attributes: gid113ae9,public
X-Google-Thread: 1116f3,b97f5e0425db66b0
X-Google-Attributes: gid1116f3,public
X-Google-Thread: 10a146,b97f5e0425db66b0
X-Google-Attributes: gid10a146,public
From: Moises Garcia Cogolludo <Moises.Garcia@wanadoo.es>
Subject: Re: Help in Reading the serial or parallel port
Date: 2000/06/13
Message-ID: <3946323C.F4DFFA74@wanadoo.es>
X-Deja-AN: 635426019
Content-Transfer-Encoding: 7bit
References: <39457BE6.23058244@cec.uchile.cl>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 960901615 62.37.26.225 (Tue, 13 Jun 2000 15:06:55 MET DST)
Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/
MIME-Version: 1.0
NNTP-Posting-Date: Tue, 13 Jun 2000 15:06:55 MET DST
Newsgroups: comp.lang.java.help,comp.lang.java.programmer,comp.lang.javascript,es.comp.lenguajes.java