Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMultiple pipes Pin
A T I F1-Jul-04 3:45
A T I F1-Jul-04 3:45 
GeneralRe: Multiple pipes Pin
valikac1-Jul-04 4:03
valikac1-Jul-04 4:03 
GeneralRe: Multiple pipes Pin
A T I F1-Jul-04 4:38
A T I F1-Jul-04 4:38 
GeneralRe: Multiple pipes Pin
valikac1-Jul-04 11:34
valikac1-Jul-04 11:34 
GeneralRe: Multiple pipes Pin
Antti Keskinen1-Jul-04 12:03
Antti Keskinen1-Jul-04 12:03 
GeneralRe: Multiple pipes Pin
A T I F2-Jul-04 3:38
A T I F2-Jul-04 3:38 
GeneralRe: Multiple pipes Pin
Antti Keskinen2-Jul-04 6:24
Antti Keskinen2-Jul-04 6:24 
GeneralRe: Multiple pipes Pin
A T I F4-Jul-04 21:38
A T I F4-Jul-04 21:38 
Thanks a lot!!!
One more question....

<br />
   LPTSTR lpszPipename = "\\\\.\\pipe\\mynamedpipe"; <br />
   HANDLE hEvents = CreateEvent(NULL, TRUE, TRUE, NULL);<br />
   OVERLAPPED Overlap;<br />
   Overlap.hEvent = hEvents; <br />
 <br />
   Pipe.hPipeInst = CreateNamedPipe( <br />
         lpszPipename,            // pipe name <br />
         PIPE_ACCESS_DUPLEX |     // read/write access <br />
         FILE_FLAG_OVERLAPPED,    // overlapped mode <br />
         PIPE_TYPE_MESSAGE |      // message-type pipe <br />
         PIPE_READMODE_MESSAGE |  // message-read mode <br />
         PIPE_WAIT,               // blocking mode <br />
         INSTANCES,               // number of instances <br />
         BUFSIZE,                 // output buffer size <br />
         BUFSIZE,                 // input buffer size <br />
         PIPE_TIMEOUT,            // client time-out <br />
         NULL);                   // no security attributes <br />
<br />
while (1) <br />
{ <br />
	BOOL bSuccess = ::ConnectNamedPipe(m_hPipe, lpOverlapped); <br />
      dwWait = WaitForMultipleObjects( <br />
         INSTANCES,    // number of event objects <br />
         hEvents,      // array of event objects <br />
         FALSE,        // does not wait for all <br />
         INFINITE);    // waits indefinitely <br />
     switch(dwWait)<br />
     {<br />
     case ..//handle the client..<br />
     }<br />
}<br />


How can I create a new pipe instance using CreateNamedPipe for every new client.
GeneralRe: Multiple pipes Pin
Antti Keskinen4-Jul-04 23:06
Antti Keskinen4-Jul-04 23:06 
GeneralRe: Multiple pipes Pin
A T I F6-Jul-04 2:25
A T I F6-Jul-04 2:25 
GeneralIE Autocomplete form data in registry Pin
Monty21-Jul-04 3:18
Monty21-Jul-04 3:18 
GeneralRe: IE Autocomplete form data in registry Pin
David Crow1-Jul-04 4:05
David Crow1-Jul-04 4:05 
GeneralRe: IE Autocomplete form data in registry Pin
Monty21-Jul-04 4:30
Monty21-Jul-04 4:30 
GeneralRe: IE Autocomplete form data in registry Pin
David Crow1-Jul-04 4:51
David Crow1-Jul-04 4:51 
GeneralCreation of Lib file Pin
Billar1-Jul-04 1:54
Billar1-Jul-04 1:54 
GeneralRe: Creation of Lib file Pin
A T I F1-Jul-04 3:17
A T I F1-Jul-04 3:17 
Questionhow to get font file? Pin
Tibor Blazko1-Jul-04 1:25
Tibor Blazko1-Jul-04 1:25 
Generalkeyboard hook Pin
arthi_mclt1-Jul-04 1:13
arthi_mclt1-Jul-04 1:13 
GeneralStatistics of my project Pin
Jerome Conus1-Jul-04 1:04
Jerome Conus1-Jul-04 1:04 
GeneralRe: Statistics of my project Pin
P-Rex1-Jul-04 3:19
P-Rex1-Jul-04 3:19 
QuestionIs it possible to find thread which sent me a message ? Pin
rrrado1-Jul-04 0:50
rrrado1-Jul-04 0:50 
AnswerRe: Is it possible to find thread which sent me a message ? Pin
jmkhael1-Jul-04 5:30
jmkhael1-Jul-04 5:30 
GeneralRe: Is it possible to find thread which sent me a message ? Pin
rrrado1-Jul-04 21:38
rrrado1-Jul-04 21:38 
General&amp;#65309;why the derived class doesn't respond to such message&amp;#65309; Pin
watch_sea1-Jul-04 0:33
watch_sea1-Jul-04 0:33 
GeneralRe: &amp;#65309;why the derived class doesn't respond to such message&amp;#65309; Pin
palbano1-Jul-04 4:10
palbano1-Jul-04 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.