telnetlib set_option_negotiation_callback usage

Joined
Apr 4, 2009
Messages
1
Reaction score
0
Hi all,

I have traced my problems to this scenario:

Server asks for "Do terminal type" and telnetlib either does not respond, or it responds "Won't terminal type". I want to respond "Will terminal type", I wont waste your time explaining how I got to this point. I've noticed that during a correct session:
client replies "Will terminal type"
server opens suboption "terminal type" (send your terminal type)
client responds with the terminal type suboption "ANSI" (here is my terminal type)

and then everyone is happy.

From what I understand, set_option_negotiation_callback is how I can accomplish this BUT I have NO idea how to use it (syntax, etc). How do I define the callback function? is there a parameter that specifies what to callback to?

Any feedback appreciated.
-Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top