Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

recently i'm working in sap develpment.

i need to emulate SAP console program via telnet server
so my hanheld device can telnet to that program

i browsed and found this georgiasoft[^] that support VT220 to support F1 F2 F3 etc key in handheld. but this is commecial one.

so i decide to make my own telnet server, but i just found sample code to build simple telnet server that just wait for string and deliver another string.

i have no idea, how to emulate the sapconsole program in telnet client. and where is the VT220 takes part.


Thank you
Posted

1 solution

I've written one recently, and it's not as easy as it sounds.

To get a basic console session up, you can just use a TcpClient and attach some sort of stream reading/writing thing to it.

It gets complicated by the fact that when you connect to a telnet server, it will send a list of what it can and can't do, optionally what it'd like to do. You need to intercept these messages and respond appropriately. WILL, WONT, DO, DONT.

Then, telnet supports different types of terminals. You may want to negotiate screen size etc. There's mapping of various keys to escape sequences etc.

If possible, I'd considering abandoning the challenge, but if necessary you'll need to get very familiar with a number of RFCs governing the standard.
 
Share this answer
 
Comments
Irvan Munadi 7-Aug-14 3:26am    
hi Rob, thank you for information, do you have any link for me to start?
Rob Philpott 7-Aug-14 7:13am    
Start here: http://tools.ietf.org/html/rfc854

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900