Sockets programming -- Connection refused
Stelios Bounanos
sb at dial.pipex.com
Sun Aug 6 17:18:46 EEST 2000
In message <20000806142254.36112 at fiend.weltmeister> ,
Alexandros Andreou <andreou at kerveros.gr> was rumoured to have said about
`` Sockets programming -- Connection refused '':
> > Edw thelei: port=htons(...);
>
> Na kati poy PANTA 3exnaw!!! :-)
>
> > > if ((fp = fdopen((int)stdin, "r")) == NULL) {
> > Edw ti akrivws kaneis? Auto pou theleis kaneis den prokeitai na doulepsei
> > etsi. To stdin exei anoixto file perigrafea, kai legetai stdin!
>
> Den kanw fopen(). Kanw fdopen(), gia na dwsw se ena valid fd ena fp, etsi
> wste an doulevw me functions poy xrhsimopoioyn streams (px: fscanf)
>
To standard input stream einai hdh sysxetismeno me enan (FILE *), ton stdin
(sto <stdio.h>) kai enan file descriptor, ton STDIN_FILENO (sto <unistd.h>)
[snip]
Rgds,
sb.
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list