| 1 |
/*******************************************************/ |
/*******************************************************/ |
| 2 |
/* */ |
/* */ |
| 3 |
/* LeafOK Innbbsd */ |
/* LeafOK Innbbsd */ |
| 4 |
/* Copyright (C) LeafOK.com, 2003-2004 */ |
/* Copyright (C) LeafOK.com, 2003-2005 */ |
| 5 |
/* */ |
/* */ |
| 6 |
/* Programmed by Leaf */ |
/* Programmed by Leaf */ |
| 7 |
/* E-mail:leaflet@leafok.com QQ:6049044 */ |
/* E-mail:leaflet@leafok.com QQ:6049044 */ |
| 73 |
virtual int s_connect(const char* hostname, unsigned int port) = 0; |
virtual int s_connect(const char* hostname, unsigned int port) = 0; |
| 74 |
virtual int s_close(void) = 0; |
virtual int s_close(void) = 0; |
| 75 |
int s_send(const char* in_str, bool auto_endl = true); |
int s_send(const char* in_str, bool auto_endl = true); |
| 76 |
int s_receive(CString& out_str, const char* end_str="\n"); |
int s_receive(CString& out_str, char end_str[] = "\r"); |
| 77 |
int s_exec(const char* in_str, CString& out_str, const char* end_str="\n"); |
int s_exec(const char* in_str, CString& out_str, char end_str[] = "\r"); |
| 78 |
virtual bool IsShutdown(void); |
virtual bool IsShutdown(void); |
| 79 |
virtual int Shutdown(void); |
virtual int Shutdown(void); |
| 80 |
virtual int Startup(void); |
virtual int Startup(void); |