PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > Libreadline + get pt + multiple session over socket
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Libreadline + get pt + multiple session over socket

Réponse
 
LinkBack Outils de la discussion
Vieux 17/10/2007, 08h23   #1
hankypan1@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Libreadline + get pt + multiple session over socket

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

  Réponse avec citation
Vieux 17/10/2007, 09h07   #2
user923005
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Libreadline + get pt + multiple session over socket

On Oct 17, 12:23 am, hankyp...@gmail.com wrote:
> 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.


I guess that you want news:comp.unix.programmer

> 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.


It sounds like a database application to me. But then again,
everything sounds like a database application to me.

ACE has a thread multiplexer. See this stuff:
http://www.cs.wustl.edu/~schmidt/ACE.html

There are a hundred communication kits on sourceforge. Why not give
it a peek?


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h50.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07405 seconds with 10 queries