| 1 |
/*******************************************************/ |
/*******************************************************/ |
| 2 |
/* */ |
/* */ |
| 3 |
/* LeafOK Innbbsd */ |
/* LeafOK Innbbsd */ |
|
/* Copyright (C) LeafOK.com, 2003-2004 */ |
|
| 4 |
/* */ |
/* */ |
| 5 |
/* Programmed by Leaf */ |
/* Copyright (C) LeafOK.com, 2003-2008 */ |
|
/* E-mail:leaflet@leafok.com QQ:6049044 */ |
|
| 6 |
/* */ |
/* */ |
| 7 |
/* http://bbs.leafok.com */ |
/* http://www.leafok.com */ |
|
/* http://bbs.leafok.net */ |
|
|
/* http://bbs.fenglin.info */ |
|
| 8 |
/* */ |
/* */ |
| 9 |
/*******************************************************/ |
/*******************************************************/ |
| 10 |
|
|
| 69 |
virtual int s_connect(const char* hostname, unsigned int port) = 0; |
virtual int s_connect(const char* hostname, unsigned int port) = 0; |
| 70 |
virtual int s_close(void) = 0; |
virtual int s_close(void) = 0; |
| 71 |
int s_send(const char* in_str, bool auto_endl = true); |
int s_send(const char* in_str, bool auto_endl = true); |
| 72 |
int s_receive(CString& out_str, const char* end_str="\r\n"); |
int s_receive(CString& out_str, char end_str[] = "\r"); |
| 73 |
int s_exec(const char* in_str, CString& out_str, const char* end_str="\r\n"); |
int s_exec(const char* in_str, CString& out_str, char end_str[] = "\r"); |
| 74 |
virtual bool IsShutdown(void); |
virtual bool IsShutdown(void); |
| 75 |
virtual int Shutdown(void); |
virtual int Shutdown(void); |
| 76 |
virtual int Startup(void); |
virtual int Startup(void); |