Networking Forums

Networking Forums > Computer Networking > Linux Networking > regarding binding port

Reply
Thread Tools Display Modes

regarding binding port

 
 
sharma
Guest
Posts: n/a

 
      04-10-2007, 10:57 AM
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?

 
Reply With Quote
 
 
 
 
Lew Pitcher
Guest
Posts: n/a

 
      04-10-2007, 12:20 PM
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.


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Old Binding Bob Windows Networking 1 05-18-2005 02:44 PM
VPN binding Stavros Raptis Windows Networking 1 03-06-2005 05:44 PM
dns is not binding !!!! suk young kim Windows Networking 1 01-19-2004 12:48 AM
nic & tcp/ip binding Barb Windows Networking 3 12-11-2003 07:08 PM
TCP/IP Not binding to card Ted bundy Windows Networking 4 08-22-2003 12:25 AM



1 2 3 4 5 6 7 8 9 10 11