Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bind and setsockopt

0 views
Skip to first unread message

asit

unread,
Oct 7, 2008, 8:33:16 AM10/7/08
to
bind returns error when a port is already in use ....some process may
be using it or the port may be just port is not used still it is
hanging around kernel...

how can i kinow the difference between these ????

Martien Verbruggen

unread,
Oct 7, 2008, 8:11:47 PM10/7/08
to

Have a look at the following tutorial:

http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html

It answers this question, as well as the other one you had. You could
also consider buying UNIX Network Programming, Volume 1 (third edition),
by W. Richard Stevens, Bill Fenner and Andy Rudoff.

Martien
--
|
Martien Verbruggen | +++ Out of Cheese Error +++ Reinstall
| Universe and Reboot +++
|

Ian Collins

unread,
Oct 7, 2008, 9:03:01 PM10/7/08
to
Martien Verbruggen wrote:
> On Tue, 7 Oct 2008 05:33:16 -0700 (PDT),
> asit <lip...@gmail.com> wrote:
>> bind returns error when a port is already in use ....some process may
>> be using it or the port may be just port is not used still it is
>> hanging around kernel...
>>
>> how can i kinow the difference between these ????
>
> Have a look at the following tutorial:
>
> http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
>
> It answers this question, as well as the other one you had. You could
> also consider buying UNIX Network Programming, Volume 1 (third edition),
> by W. Richard Stevens, Bill Fenner and Andy Rudoff.
>
s/could/should/

That book's a treasure trove.

--
Ian Collins.

Andrew Gabriel

unread,
Oct 8, 2008, 10:45:40 AM10/8/08
to
In article <9b03fe44-4f8e-4474...@o40g2000prn.googlegroups.com>,

Why do you need to?
What different action are you planning on taking in each case?

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]

0 new messages