|
lug-bg: socket programming
- Subject: lug-bg: socket programming
- From: firedust@xxxxxxx (Stanislav Lechev)
- Date: Mon, 28 May 2001 13:18:57 +0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
nqmam ideq do kolko e offtopic towa msg
porati prichinata che nqmam ideq kolko programmerz pishat tuk :)
no gledam che naposledyk e mode da se pishat offtopic msg-ta :)
znachi problema mi e sledniq...
kogato pisha socket programa (tcp) nemoga da likwidiram bufer-a
ys setvbuf moga da premahna biffer-a na FD (read/write) ot files
no kogato stawa duma za socket neshte i neshte
az si mislq che ima i drugi func za taq work ama nemoga da se setq
nito edna
ta eto kakwo iskam da polucha
wsichki se seshtate kogato se telnetnete na cisco-to
ili na nqkoj 3comski hardware ili na nqkoj modem ili kakwoto i da e
i napishete polowinata komanda
primerno "sh" (show) i natisnete TAB komandata se dopylwa
neshto kato GNU readline ...
da i az izpolzwam libreadline no problema e che kogato cheta ot socket
dori i da iskam da procheta samo 1 byte
toj ne idwa do mene dokato ne e natisnat enter-a
t.e.
az cheta 1 byte... otsreshta mogat da mi napishat 101 no te shte stignat
do mene edwa sled natiskaneto na enter
ta towa e linebuffer
ustanowih che sys setvbuf moga da go premahna
no ne i za socket...
termios - terminal attributes
syshto move da swyrshi podobna rabota
no pak nestawa za socket ?!?
estestweno mi wryshta :
invalid file descriptor
ili
invalid argument
ili kwo li oshte ne...
so.....
nqkoj da ima ideq kak da premagna buffera
na edin socket ?
- --
- -===============================================================-
- - Regards, AngelFire -
- - Stanislav Lechev <firedust@xxxxxxx> -
- - PGP Key: http://firedust.vega.bg/pgp/StanislavLechev.asc -
- - Vega Internet Service Provider (tm) -- http://www.vega.bg -
- -===============================================================-
Everyone is a genius.
It's just that some people are too stupid to realize it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7EiYR8RPXBhiMqewRArArAJ93KfDFIDJUjvQoZ2oocMw2FQaUcQCaAtOL
QIZULG39fPBS7rGnvqEkYqI=
=cK/x
-----END PGP SIGNATURE-----
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|
|
|