Home > Net >  The language can't communicate with c # anonymous pipe
The language can't communicate with c # anonymous pipe

Time:03-17

I written in c # using anonymouspipeserverstream an anonymous pipe, and the program for the server, want to use this program launched the client program written in the language, and complete the communication, is able to receive to the client output, start when the client sends a pipe handle, the client to obtain the handle after don't know how to generate pipeline , the great god, please advise, if the same words written in c # client is no problem, can be generated through the pipe handle anonymouspipeserverstream object,

CodePudding user response:

This you should be asked to Go there

As far as possible, of course, we also help

The
reference
standard library to achieve
anonymous pipe
The exec. Cmd. StdinPipe ()
The exec. Cmd. StdoutPipe ()
The exec. Cmd. StderrPipe ()

Named pipe
The syscall. Mkfifo ()
The third party implementation encapsulation
https://pkg.go.dev/bitbucket.org/avd/go-ipc? TAB=doc
Fifo (Unix and Windows pipes)
The memory mapped files
Shared memory
System message the queues (Linux, FreeBSD, OSX)
Cross - platform priority message queue
Mutexes, rw mutexes
Semaphores
Events
Conditional variables


You see, he has his own library,

Ps: I personally could directly use GRPC or netmq (this should be under the go gozmq, but with the agreement is the same)

CodePudding user response:

reference 1st floor wanghui0380 response:
this you should be asked to Go there

As far as possible, of course, we also help

The
reference
standard library to achieve
anonymous pipe
The exec. Cmd. StdinPipe ()
The exec. Cmd. StdoutPipe ()
The exec. Cmd. StderrPipe ()

Named pipe
The syscall. Mkfifo ()
The third party implementation encapsulation
https://pkg.go.dev/bitbucket.org/avd/go-ipc? TAB=doc
Fifo (Unix and Windows pipes)
The memory mapped files
Shared memory
System message the queues (Linux, FreeBSD, OSX)
Cross - platform priority message queue
Mutexes, rw mutexes
Semaphores
Events
Conditional variables


You see, he has his own library,

Ps: I personally could directly use GRPC or netmq (this should be under the go gozmq, but is the same with the agreement) to communicate

Thank you, I use the go library with yourself no problem, in c # is also pass yourself, now is to use two kinds of communication problems,
  •  Tags:  
  • C#
  • Related