It depends on if you have written the server, or the client. If you haveQuote:>I am quite new to Linux and programming. I have recently installed Red
>Hat 6.1 in my system with kernel 2.2.12-20. The installation went off
>soothly without any problems. Since I wanted to do some network
>programming, I wrote a program which displays Time of day using port 13.
>The compilation went off without a hitch. When the program was run, I
>could create the socket. but when I try to connect to the socket, the
>program terminates with a connect error saying that the connection was
>refused. Can some one help me in finding out what went wrong. The
>program I tried was the first program from Richard Stevens UNIX Network
>Programming - Second edition.
Hope this helps .....
I can tell you this though, that the code in the Stevens book works well in
every example that I have tried.
William R. Mattil | This Space is Available for Rent
(972) 399-4106 |
You probably got a "connection refused" error because the DayTime serviceQuote:> So my guess is that when I tried to run time of day client with port 13,
> my connection was refused 13.
Only processes with an effective user ID of 0 are allowed to bind toQuote:> When I wrote the server program with port 13, I couldn't bind maybe
> because port 13 was a reserved port and other programs are not supposed
> to use it.
Hope this helps,
I get the following error message when I login as a non-root user
[: too many arguments
Some things work fine, and others don't. For instance, I can type startx to
get xwindows running, but netscape and sound don't work. They do work when I
log in as root.
Can you offer any suggestions?