Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19800

Re: newbie socket help

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: newbie socket help
Date 2012-02-02 11:34 -0500
References <4e70f47b-89e4-46bb-929e-9b7db20e7bcc@l16g2000vbl.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.5364.1328200505.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, 2 Feb 2012 05:53:22 -0800 (PST), loial <jldunn2000@gmail.com>
wrote:

>I am trying to write a python script to read data from a printer port
>using python sockets, but it seems I am locking up the port.
>
>Is there a way to ensure that I do not block the port to other
>applications?
>
>My knowledge of python sockets is minimal, so any help would be
>appreciated.

	OS and Python version might be of interest...

	However, parallel ports are typically unshared devices (which is why
any multitasking system has things like print spooling -- so multiple
tasks and "print" to the spool, and the spool driver is the only process
actually accessing the printer port).

	I still have nightmares over one assignment I had some 8 years ago:
Reading a clock signal (square wave) on one of the parallel port's
signal pins, in order to time a three-bit /balanced/ (using 6-pins of
the output) data stream. Done on a W98 laptop (since W98 didn't have the
protected ports of WinXP) using Visual C++  -- and on the laptop as the
eventual plan had been to send "red" GPS decryption keys to satellites;
contact with "red" keys makes the hardware it passes through highly
classified, and the main hardware had to stay "open" for uncleared
developers working on flight software.

	Unfortunately, even with the program running at the highest
available Windows priority, the OS still did <something> every few
milliseconds, which led to glitches in the output stream. (The good
news: by the time the DTD with the keys became available, the CONOPS had
changed to use "black" keys, which did not "infect" the computer system
-- so the regular command formatter could be used for uploading).

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

newbie socket help loial <jldunn2000@gmail.com> - 2012-02-02 05:53 -0800
  Re: newbie socket help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-02-02 11:34 -0500
    Re: newbie socket help loial <jldunn2000@gmail.com> - 2012-02-06 01:23 -0800
      Re: newbie socket help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-02-07 12:44 -0500

csiph-web