WCF named pipe minimal example

I just found this excellent little tutorial. broken link (Cached version) I also followed Microsoft’s tutorial which is nice, but I only needed pipes as well. As you can see, you don’t need configuration files and all that messy stuff. By the way, he uses both HTTP and pipes. Just remove all code lines related … Read more

Example of Named Pipes

using System; using System.IO; using System.IO.Pipes; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { StartServer(); Task.Delay(1000).Wait(); //Client var client = new NamedPipeClientStream(“PipesOfPiece”); client.Connect(); StreamReader reader = new StreamReader(client); StreamWriter writer = new StreamWriter(client); while (true) { string input = Console.ReadLine(); if (String.IsNullOrEmpty(input)) break; writer.WriteLine(input); writer.Flush(); Console.WriteLine(reader.ReadLine()); … Read more

IPC performance: Named Pipe vs Socket

Best results you’ll get with Shared Memory solution. Named pipes are only 16% better than TCP sockets. Results are get with IPC benchmarking: System: Linux (Linux ubuntu 4.4.0 x86_64 i7-6700K 4.00GHz) Message: 128 bytes Messages count: 1000000 Pipe benchmark: Message size: 128 Message count: 1000000 Total duration: 27367.454 ms Average duration: 27.319 us Minimum duration: … Read more

unix domain socket VS named pipes?

UNIX-domain sockets are generally more flexible than named pipes. Some of their advantages are: You can use them for more than two processes communicating (eg. a server process with potentially multiple client processes connecting); They are bidirectional; They support passing kernel-verified UID / GID credentials between processes; They support passing file descriptors between processes; They … Read more

What are named pipes?

Both on Windows and POSIX systems, named-pipes provide a way for inter-process communication to occur among processes running on the same machine. What named pipes give you is a way to send your data without having the performance penalty of involving the network stack. Just like you have a server listening to a IP address/port … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)