serverloop.h revision 76259
1210753Srpaulo/* $OpenBSD: serverloop.h,v 1.2 2001/01/29 01:58:17 niklas Exp $ */ 2210753Srpaulo 3210753Srpaulo/* 4210753Srpaulo * Author: Tatu Ylonen <ylo@cs.hut.fi> 5210753Srpaulo * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6210753Srpaulo * All rights reserved 7210753Srpaulo * 8210753Srpaulo * As far as I am concerned, the code I have written for this software 9210753Srpaulo * can be used freely for any purpose. Any derived versions of this 10210753Srpaulo * software must be clearly marked as such, and if the derived work is 11210753Srpaulo * incompatible with the protocol description in the RFC file, it must be 12210753Srpaulo * called by a name other than "ssh" or "Secure Shell". 13210753Srpaulo */ 14210753Srpaulo/* 15210753Srpaulo * Performs the interactive session. This handles data transmission between 16210753Srpaulo * the client and the program. Note that the notion of stdin, stdout, and 17210753Srpaulo * stderr in this function is sort of reversed: this function writes to stdin 18210753Srpaulo * (of the child program), and reads from stdout and stderr (of the child 19210753Srpaulo * program). 20210753Srpaulo */ 21210753Srpaulovoid server_loop(pid_t pid, int fdin, int fdout, int fderr); 22210753Srpaulovoid server_loop2(void); 23210753Srpaulo