NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Project Help and Ideas » iPhone-Controlled R/C Car

February 20, 2011
by Moose
Moose's Avatar

How do you create the named pipe in windows?

February 21, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi Moose,

The answer is, you don't. There actually are ways to do it, but it can only done programatically from some programming languages. Your best bet is to change the architecture of the program a little and use something else to communicate between php and the python code. Your best bet is probably to use sockets.

Humberto

February 21, 2011
by Moose
Moose's Avatar

thank you that helped a lot

February 21, 2011
by Moose
Moose's Avatar

never mind a thought i figured out how to set up a sockets but it didn't work is there a web site that shows how to do this that you know of

February 21, 2011
by Moose
Moose's Avatar

sorry just found out this has already been asked and answered Thank u for the help

February 24, 2011
by Moose
Moose's Avatar

â–ºCan you explain how this code works?

import socket
mySocket = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
mySocket.bind ( ( '', 2727 ) )
mySocket.listen ( 5 )
while True:
    channel, details = mySocket.accept()
    print 'We have opened a connection with', details
    txt = channel.recv ( 100 )
    print txt
    channel.send ( "This is a response test - attempt 1\0" )
    channel.close()

Post a Reply

Please log in to post a reply.

Did you know that you need to think about wires differently when you're transmitting signals more than a few inches? Learn more...