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

Function tcpClientObjectCommandCmd

micropolis-activity/src/tk/tktcp.c:1907–1940  ·  view source on GitHub ↗
(clientData, interp, argc, argv)

Source from the content-addressed store, hash-verified

1905 register Tcp_ClientData * client = (Tcp_ClientData *) clientData;
1906
1907 if (argc != 1) {
1908 Tcl_AppendResult (interp, "wrong # args: should be \"", argv [-1], " ",
1909 argv [0], "\"", (char *) NULL);
1910 return TCL_ERROR;
1911 }
1912
1913 if (client -> activeFlag)
1914 client -> closeFlag = 1;
1915 else
1916 tcpCloseClient (client);
1917
1918 return TCL_OK;
1919}
1920
1921
1922/*
1923 * tcpClientObjectCommandCmd --
1924 *
1925 * Query/change the command associated with a client object
1926 *
1927 * Syntax:
1928 * $client command ?newcommand?
1929 *
1930 * Return:
1931 * A standard Tcl result containing the client's command.
1932 */
1933
1934static int
1935tcpClientObjectCommandCmd (clientData, interp, argc, argv)
1936 ClientData clientData;
1937 Tcl_Interp * interp;
1938 int argc;
1939 char * * argv;
1940{
1941 register Tcp_ClientData * client = (Tcp_ClientData *) clientData;
1942
1943 /* Check syntax */

Callers 1

tcpClientObjectCmdFunction · 0.85

Calls 2

Tcl_AppendResultFunction · 0.85
Tcl_SetResultFunction · 0.85

Tested by

no test coverage detected