[fpc-pascal]telnet proxy help
tom_at_work at yline.com
Mon Feb 18 11:33:41 CET 2002
> here is my project: i need to write a telnet proxy for this game. it is
> 100% ansi-text based and my proxy program will maintain a database of game
> information by parsing each line of text that passes through the proxy as
At http://members.yline.com/~tom_at_work/selectserver.zip (19k) I've put an
example of such a small telnet proxy (a quick conversion from a C example
program which I included). It simply forwards all data sent to it to all
other connected clients, e.g. allows chatting via telnet. Don't worry about
the size of the zip, but it uses a slightly modified winsock2 unit from the
contribs page which I included (the actual code is 3k..).
Note that it's definitely not the best code, but definitely something to get
Maybe it might be easier to use the socket stream classes provided by the
> i would like the application to run as a tray application, or as a small
> floating menubar only. [..]
* FPC / Win32 includes a small example program which shows basic GUI
handling on the lowest possible level ^^. Since you don't need any GUI stuff
I think it's inappropiate to fire up a GUI library... Hmm... there's a
contribution called "Commented examples under Windows 95" on the contribs
list. I guess this will help a little bit too.
* To avoid the program being shown in the task bar and the desktop, create
it as WS_POPUP only (not WS_VISIBLE).
The tray icon stuff is completely handled by the Win32 "Shell_NotifyIcon()"
function.... there's a unit on the contribs' list called ShellAPI or similar
which provides an interface to it (I hope so).
More information about the fpc-pascal