(clientData, interp, argc, argv)
| 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 | |
| 1934 | static int |
| 1935 | tcpClientObjectCommandCmd (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 */ |
no test coverage detected