![]() |
Stdin2 Class Reference#include <Stdin2.h>
Inheritance diagram for Stdin2: ![]() ![]()
Detailed Description
Definition at line 32 of file Stdin2.h. Constructor & Destructor Documentation
File ......... Stdin2.cpp Published .... 2004-07-03 Author ....... grymse@alhem.net Definition at line 32 of file Stdin2.cpp. 00032 : Stdin(h) 00033 ,m_pICMPSocket(NULL) 00034 { 00035 }
Member Function Documentation
characters from stdin, including crlf's Implements Stdin. Definition at line 38 of file Stdin2.cpp. References m_pICMPSocket. 00039 { 00040 char buf[1000]; 00041 strncpy(buf, p, len); 00042 buf[len] = 0; 00043 while (strlen(buf) && (buf[strlen(buf) - 1] == 13 || buf[strlen(buf) - 1] == 10)) 00044 buf[strlen(buf) - 1] = 0; 00045 //printf("Console(%d bytes): %s\n", n, buf); 00046 if (m_pICMPSocket) 00047 { 00048 m_pICMPSocket -> Send( buf ); 00049 } 00050 }
Definition at line 38 of file Stdin2.h. References m_pICMPSocket. Referenced by main(). 00038 { m_pICMPSocket = p; }
Member Data Documentation
The documentation for this class was generated from the following files: |