On Apr 10, 6:57 am, "sharma" <phaneen...@gmail.com> wrote:
> i have written a programm under linux using bind function as user i
> have compiled
> and program was compiled and it is running "but no output"
>
> when i compiled and runned the same programm iam getting the output
>
> as
> Proto Recv-Q Send-Q local Address foregin address state Pid/program
> name
>
> no socket type no local address ......evrything except the above line
>
> why it happence?
The Magic Eight Ball says ..... "Better Luck Next Time"
Sorry, but from the information that you have supplied, it is
impossible to tell what the problem is.
The bind() call does not produce any printable output, so the
differences in printable output don't have anything directly to do
with bind(). In any case, from the information you have supplied, we
cannot discern /what/ component generates your "Proto Recv-Q..." line.
It /looks/ like a line out of netstat, but since you haven't mentioned
invoking netstat (either from within your program or by commandline),
it is not clear that netstat is used.
FWIW, there are a number of reasons why bind() would work differently
between users. In your program, do you test the return value from
bind()? Do you evaluate the errno variable when bind() returns an
error? What port are you trying to bind() to? Is there something
already bound to that port? /Was/ there something bound to that port
within the last 2MSL timeframe?
How about posting a short code example that shows what you have done,
along with the results that you are seeing, and any debugging
information that you've collected. That way, we don't have to be
psychic to be able to help you.
|