Skip to content

Commit 7eaeeee

Browse files
authored
Fixes and extensions. Upload for version 1.4.
1 parent 3258832 commit 7eaeeee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

TelnetSpy.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@
4646
* Change the message which will be send to the telnet client after a session
4747
* is established.
4848
* Default: "Connection established via TelnetSpy.\n"
49-
* void setWelcomeMsg(char* msg);
49+
* void setWelcomeMsg(const char* msg);
50+
* void setWelcomeMsg(const String& msg);
5051
*
5152
* Change the message which will be send to the telnet client if another
5253
* session is already established.
5354
* Default: "TelnetSpy: Only one connection possible.\n"
54-
* void setRejectMsg(char* msg);
55+
* void setRejectMsg(const char* msg);
56+
* void setRejectMsg(const String& msg);
5557
*
5658
* Change the amount of characters to collect before sending a telnet block.
5759
* Default: 64
@@ -144,7 +146,8 @@
144146
* - If a "msg" is given (not NULL), this message will be send back via the
145147
* telnet connection.
146148
* - If the "callback" is set (not NULL), the given function is called.
147-
* void setFilter(char ch, char* msg, void (*callback());
149+
* void setFilter(char ch, const char* msg, void (*callback());
150+
* void setFilter(char ch, const String& msg, void (*callback());
148151
*
149152
* This function returns the actual filter character (0 => not set).
150153
* char getFilter();

0 commit comments

Comments
 (0)