strange problem with nonblocking sockets

A

anki

hi

I am getting a strange problem when using non-blocking sockets. I
have a application which listens on port 3333. Now i try to connect to
it. connection is succesful. No problem.
But when i start the client first and then the server, server is not
able to bind on port 3333.
when i did netstat -a | grep 3333
tcp 0 0 lab123.exl:3333 lab123.exl:3333 ESTABLISHED

I am working on Red hat linux.


Thanks in advance

bye
anki
 
T

Thomas Matthews

anki said:
hi

I am getting a strange problem when using non-blocking sockets. I
have a application which listens on port 3333. Now i try to connect to
it. connection is succesful. No problem.
But when i start the client first and then the server, server is not
able to bind on port 3333.
when i did netstat -a | grep 3333
tcp 0 0 lab123.exl:3333 lab123.exl:3333 ESTABLISHED

I am working on Red hat linux.


Thanks in advance

bye
anki

Since this is not a language issue, I believe
you will get better knowledge from a Linux or
unix newsgroup. Read the FAQs and welcome.txt
below for newsgroup ideas.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
 
J

Jens.Toerring

anki said:
I am getting a strange problem when using non-blocking sockets. I
have a application which listens on port 3333. Now i try to connect to
it. connection is succesful. No problem.
But when i start the client first and then the server, server is not
able to bind on port 3333.
when i did netstat -a | grep 3333
tcp 0 0 lab123.exl:3333 lab123.exl:3333 ESTABLISHED
I am working on Red hat linux.

Since sockets aren't part of standard C but extensions for your
OS you better post this in either comp.os.linux.development.apps
or in comp.unix.programmer.
Regards, Jens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top