Unix Programming - Libreadline + get pt + multiple session over socket

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > October 2007 > Libreadline + get pt + multiple session over socket





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Libreadline + get pt + multiple session over socket
hankypan1@gmail.com

2007-10-18, 7:37 am

Hi All,

I am developing a multi threaded CLI application which will be
running over the socket interface. So i need to have a telnet server
sort of thing, command line editor application with their multiple
session.
I could think of following approaches, pls comment


a) I write a complete telnet server which handles all keys like
backspace and all. Have my execution of specific keys at required
places.


b) Another is using libreadline over a simple telnet server which
just
spawn a new process on a new pty like getting a new PT, open the
terminal and then spawn a new process which internally uses readline.
This way i dont need to go for each key handling. Now my concern is i
dont want to have seperate process for each session from socket
interface. I want to go for multi threaded application instead. Pls
let me know how i can do it.


Thanks

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com