1*0Sstevel@tonic-gate /* $OpenBSD: serverloop.h,v 1.5 2001/06/27 02:12:53 markus Exp $ */ 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate #ifndef _SERVERLOOP_H 4*0Sstevel@tonic-gate #define _SERVERLOOP_H 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate #ifdef __cplusplus 9*0Sstevel@tonic-gate extern "C" { 10*0Sstevel@tonic-gate #endif 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate 13*0Sstevel@tonic-gate /* 14*0Sstevel@tonic-gate * Author: Tatu Ylonen <ylo@cs.hut.fi> 15*0Sstevel@tonic-gate * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 16*0Sstevel@tonic-gate * All rights reserved 17*0Sstevel@tonic-gate * 18*0Sstevel@tonic-gate * As far as I am concerned, the code I have written for this software 19*0Sstevel@tonic-gate * can be used freely for any purpose. Any derived versions of this 20*0Sstevel@tonic-gate * software must be clearly marked as such, and if the derived work is 21*0Sstevel@tonic-gate * incompatible with the protocol description in the RFC file, it must be 22*0Sstevel@tonic-gate * called by a name other than "ssh" or "Secure Shell". 23*0Sstevel@tonic-gate */ 24*0Sstevel@tonic-gate /* 25*0Sstevel@tonic-gate * Performs the interactive session. This handles data transmission between 26*0Sstevel@tonic-gate * the client and the program. Note that the notion of stdin, stdout, and 27*0Sstevel@tonic-gate * stderr in this function is sort of reversed: this function writes to stdin 28*0Sstevel@tonic-gate * (of the child program), and reads from stdout and stderr (of the child 29*0Sstevel@tonic-gate * program). 30*0Sstevel@tonic-gate */ 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate void server_loop(pid_t, int, int, int); 33*0Sstevel@tonic-gate void server_loop2(Authctxt *); 34*0Sstevel@tonic-gate 35*0Sstevel@tonic-gate #ifdef __cplusplus 36*0Sstevel@tonic-gate } 37*0Sstevel@tonic-gate #endif 38*0Sstevel@tonic-gate 39*0Sstevel@tonic-gate #endif /* _SERVERLOOP_H */ 40