example \\.\pipe\xxxx as http://localhost:port
- All posts
- Helpful Solutions
I'm struggling to figure out what you're trying to do here. If this is a developer question, your best bet is probably to try the mailing list: https://lists.mozilla.org/listinfo/dev-apps-firefox
I managed to create a Named Pipe and even send some info on it. You can do it this way:
var Request_file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); Request_file.initWithPath("\\\\.\\pipe\\myPipe"); var outputStream = Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream); outputStream.init(Request_file, 0x04 | 0x08 | 0x10, 00002, 0); var text = ""; outputStream.write(text, text.length);
My problem however, right now is with reading infor being sent back on the same Pipe. Any ideas how to do that?
I am also having the same problem... How to read back from a named pipe? Does anybody found any solution for this?
- IMPORTANT ANNOUNCEMENT: We’re going through some system changes, that may have slowed responses to your questions. If you had asked a question in the last couple of months, please re-post it and the community will help you as soon as we can. If you’ve registered after February 7th, please register again, the accounts on the previous site were not migrated to this temporary site. If you joined us before February 7, please reset your password if you have trouble logging into this temporary site.