MCPcopy Create free account
hub / github.com/SimHacker/micropolis / simpleCreateFileHandler

Function simpleCreateFileHandler

micropolis-activity/src/tk/tktcp.c:473–489  ·  view source on GitHub ↗
(fd, mask, proc, clientData)

Source from the content-addressed store, hash-verified

471 * from the Tk main loop. In a non-Tk environment, a
472 * Tcp_FileHandler structure is created to describe the file, and
473 * this structure is linked to a chain of such structures
474 * processed by the server main loop.
475 */
476
477void
478simpleCreateFileHandler (fd, mask, proc, clientData)
479 int fd;
480 int mask;
481 Tk_FileProc * proc;
482 ClientData clientData;
483{
484 Tk_CreateFileHandler (fd, mask, (Tk_FileProc *) proc, clientData);
485
486 /* It is possible that we have a file handler scheduled for deletion.
487 * This deletion has to be cancelled if we've requested creation of
488 * another one.
489 */
490
491 Tk_CancelIdleCall ((Tk_IdleProc *) simpleDeleteFileHandler2,
492 (ClientData) fd);

Callers 3

tcpServerObjectStartCmdFunction · 0.85
tcpWriteResultToClientFunction · 0.85
tcpPrepareClientForInputFunction · 0.85

Calls 2

Tk_CreateFileHandlerFunction · 0.70
Tk_CancelIdleCallFunction · 0.70

Tested by

no test coverage detected