C# 클래스 NAPS2.Util.Pipes

Simple inter-process communication between NAPS2 instances via named pipes.
파일 보기 프로젝트 열기: cyanfish/naps2 1 사용 예제들

공개 메소드들

메소드 설명
KillServer ( ) : void

Kills the pipe server background thread if one is running.

SendMessage ( Process recipient, string msg ) : bool

Send a message to a NAPS2 instance running a pipe server.

StartServer ( Action msgCallback ) : void

Start a pipe server on a background thread, calling the callback each time a message is received. Only one pipe server can be running per process.

비공개 메소드들

메소드 설명
GetPipeName ( Process process ) : string

메소드 상세

KillServer() 공개 정적인 메소드

Kills the pipe server background thread if one is running.
public static KillServer ( ) : void
리턴 void

SendMessage() 공개 정적인 메소드

Send a message to a NAPS2 instance running a pipe server.
public static SendMessage ( Process recipient, string msg ) : bool
recipient System.Diagnostics.Process The process to send the message to.
msg string The message to send.
리턴 bool

StartServer() 공개 정적인 메소드

Start a pipe server on a background thread, calling the callback each time a message is received. Only one pipe server can be running per process.
public static StartServer ( Action msgCallback ) : void
msgCallback Action The message callback.
리턴 void