All Questions
Tagged with named-pipes java
61
questions
0
votes
1
answer
357
views
How to listen for data in named pipe in Java/Kotlin in Linux?
I want to listen for a named pipe on Linux (and only Linux) using Kotlin or Java. Currently I do the following:
val reader = File(PIPE_NAME).bufferedReader()
while (true) {
reader.readLine()?.let { ...
0
votes
1
answer
309
views
Can't connect to MariaDB by named pipe with java client connector
Spent about two days combining/testing protocols, parameters with no luck.
Seems that java client connector is buggy, but maybe I miss something.
Windows (10, but I think there is no difference)
...
0
votes
0
answers
185
views
Windows named pipe build for Linux - how to read named pipe from Java app
I've built a PLC server and test client for linux-x64 in Visual Studio with
https://github.com/S7NetPlus/s7netplus
All run OK on Ubuntu 22.04. The PLC server created a named pipe which I have to write ...
2
votes
0
answers
234
views
Terminate a thread blocked on opening an input stream from a UNIX named pipe
I am using java IO streams to read commands from a Unix named pipe. The program has a thread that creates a named pipe with mkfifo and then listens to it, allowing the user to send commands to it ...
0
votes
1
answer
660
views
An efficient way to use Windows Named Pipe for IPC
I am using jna module to connect two processes that both perform FFMPEG commands. Send SDTOUT of FFMPEG command on the server side to NampedPipe and receive STDIN from that NampedPipe for other FFMPEG ...
0
votes
1
answer
432
views
I actually WANT a blocking write to a linux named pipe
I have a threaded application. In one thread I want to write data streamed from a database to a named pipe and I want the writes to block if the reader (the command line program "zip" in ...
0
votes
2
answers
548
views
AsynchronousFileChannel.open hangs when opening a FIFO (named pipe) for read
On Linux, I have a named pipe created in the shell using mkfifo /tmp/test.
I would like to use it for async reads, so as a first step I am opening it using AsynchronousFileChannel:
java.nio....
1
vote
0
answers
452
views
Client named pipe in Powershell not connecting to server in Java
I implemented a simple bi-directional pipe server in Java using JNA, respectively a client in Powershell.
Basically, I expect the client to connect, send a message to the server and finally get a ...
0
votes
0
answers
641
views
IPC between C# and Java using Named Pipes
I'm trying to send data from C# app, to Java using Named pipes.
Data is in form of a custom object.
C# writer initialization is below:
BinaryWriter writer = new BinaryWriter(new BufferedWriterStream(...
1
vote
0
answers
121
views
RandomAccessFile doesn't work with Minecraft Forge
I'm working at the moment on a Mod for Minecraft with a dedicated Gui system written in C++ and Qt5. I let my GUI and Minecraft communicate through a named pipe, but I have there a small problem. I ...
1
vote
0
answers
505
views
No process is on the other end of the pipe - Named Pipes in JAVA
I am using this codes in communicating with Evolis KC200 printer:
@Test
public void studyPipe() {
try {
String echoText = " {\"id\":\"1\",\"jsonrpc\":\"2.0\",\"method\":\"CMD.GetStatus\",\...
1
vote
0
answers
353
views
make fifo pipe in java(windows), write some data into it, let other process read the pipe
My objective is to create a named pipe(fifo) in windows(java), write some data(coming from camera) into that and invoke ffmpeg command to make mp4 from that data. But I suspect that it is not opening ...
2
votes
2
answers
4k
views
Read continuously from a named pipe using Java
I am trying to read continuously from a named pipe using java. This question answers it for python/bash.
public class PipeProducer {
private BufferedReader pipeReader;
public PipeProducer(String ...
1
vote
1
answer
631
views
Cannot interrupt named pipe channel in Java on Windows
I have named pipe .\pipe\pipe1 on Windows I want to read from with Java.
From the documentation, FileChannel should be interruptible. Read should throw a ClosedByInterruptException if the reading ...
0
votes
0
answers
244
views
Distinguish between a named pipe and an ordinary file in Java
How to distinguish between a named pipe and an ordinary file (for example a text file) in Java (under Windows as well as under Linux)?
In my case the user gives an input parameter (input filename/...