+ Reply to Thread
Results 1 to 2 of 2

Thread: How to create Named Pipe server that can accept connection?

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    24

    How to create Named Pipe server that can accept connection?

    I want to create a pipe server that can accept connection from client. Also, server should handle multiple clients at the same time. What is the best way to create such a server? Please provide some guidance.

  2. #2
    You can use "CreateNamedPipe" API to create named pipe server. There are below ways to create a server that can handle multiple clients at the same time:
    a. Multi-threaded server
    b. Asynchronous IO
    c. Completion routines

    Multi-threaded server is easy to develop. But takes more system resources. Both b and c are aysnchronous and not so easy to develop. But they gives you great performance. So it depends on you how you want to develop your server.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts