From: Zoran V. <vas...@us...> - 2005-04-16 14:51:11
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20257 Modified Files: conn.c Log Message: Untabify, re-ident and cleanup (make it looks more decent than it was). Index: conn.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/conn.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** conn.c 16 Apr 2005 14:05:25 -0000 1.8 --- conn.c 16 Apr 2005 14:51:03 -0000 1.9 *************** *** 41,46 **** static int GetChan(Tcl_Interp *interp, char *id, Tcl_Channel *chanPtr); static int GetIndices(Tcl_Interp *interp, Conn *connPtr, Tcl_Obj **objv, ! int *offPtr, int *lenPtr); ! static int MakeConnChan(Tcl_Interp *interp, Ns_Conn *conn); --- 41,46 ---- static int GetChan(Tcl_Interp *interp, char *id, Tcl_Channel *chanPtr); static int GetIndices(Tcl_Interp *interp, Conn *connPtr, Tcl_Obj **objv, ! int *offPtr, int *lenPtr); [...2117 lines suppressed...] { int sock; /* ! * Flush the connection, so we can safely make a dup of the socket. ! * Without this, we may dup some unwanted data in socket buffers ! * which may confuse the receiving side. */ Ns_WriteConn(conn, NULL, 0); sock = ns_sockdup(Ns_ConnSock(conn)); if (sock == INVALID_SOCKET) { ! return NULL; } Ns_SockSetBlocking(sock); ! return Tcl_MakeTcpClientChannel((ClientData)sock); } |