1 /****************************************************************************** 2 (c) 2000 Christine Caulfield christine.caulfield@googlemail.com 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 ******************************************************************************/ 14 15 class ClientSession: public LATSession 16 { 17 public: 18 ClientSession(class LATConnection &p, 19 unsigned char remid, unsigned char localid, char *, bool clean); 20 21 virtual ~ClientSession(); 22 virtual int new_session(unsigned char *remote_node, 23 char *service, char *port, unsigned char c); 24 virtual void do_read(); 25 virtual void disconnect_session(int reason); 26 27 virtual int connect_parent(); 28 virtual void restart_pty(); 29 virtual void show_status(unsigned char *node, LAT_StatusEntry *entry); 30 virtual void start_port(); 31 int get_port_fd(); 32 33 private: 34 int slave_fd; 35 bool slave_fd_open; 36 char mastername[255]; 37 }; 38