![]() |
Stdin Class Reference#include <Stdin.h>
Inheritance diagram for Stdin: ![]()
Detailed DescriptionFile ......... Stdin.h Published .... 2004-07-03 Author ....... grymse@alhem.net
Definition at line 30 of file Stdin.h. Constructor & Destructor Documentation
File ......... Stdin.cpp Published .... 2004-07-03 Author ....... grymse@alhem.net Definition at line 29 of file Stdin.cpp. 00029 : Socket(h) 00030 ,m_bufsize(bufsize) 00031 { 00032 Attach( STDIN_FILENO ); 00033 Set(true, false, false); 00034 }
Member Function Documentation
Definition at line 37 of file Stdin.cpp. References m_bufsize, and OnData(). 00038 { 00039 char buf[m_bufsize]; 00040 int n = read(GetSocket(), buf, m_bufsize + 1); //recv(0, buf, 1000, 0); 00041 if (n == -1) 00042 { 00043 Handler().LogError(this, "OnRead", errno, strerror(errno), LOG_LEVEL_FATAL); 00044 SetCloseAndDelete(); 00045 return; 00046 } 00047 OnData(buf, n); 00048 }
Member Data Documentation
The documentation for this class was generated from the following files: |