BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TCPServer 8.0 and TCPServer 9.0

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Grega Loboda
Guest





PostPosted: Tue Mar 15, 2005 2:39 pm    Post subject: TCPServer 8.0 and TCPServer 9.0 Reply with quote



I had TCPServer in version 8. I started two servers, everything was cool,
except the last started server was doing its job. If I shut down the last
started server, the first started do to its job.
In version 9, if I start the second server I get exception.
Is this correct? Can I somehow solve this problem to be as it was before?

Grega


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Mar 15, 2005 5:44 pm    Post subject: Re: TCPServer 8.0 and TCPServer 9.0 Reply with quote




"Grega Loboda" <grega.loboda (AT) email (DOT) si> wrote


Quote:
I had TCPServer in version 8. I started two servers, everything was
cool, except the last started server was doing its job. If I shut down
the last started server, the first started do to its job. In version 9, if
I
start the second server I get exception.

Please elaborate. You need to provide specific details. What does your
actual code look like? What is the exception type and message? When
exactly does it occur?


Gambit



Back to top
Grega Loboda
Guest





PostPosted: Wed Mar 16, 2005 3:00 pm    Post subject: Re: TCPServer 8.0 and TCPServer 9.0 Reply with quote



I have first TCPServer active, listening to port 23 on my ip 10.0.0.6. When
I try to activate the second TCPServer I get: Could not bind socket. Address
and port are already in use.

Grega

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Grega Loboda" <grega.loboda (AT) email (DOT) si> wrote in message
news:4236f393 (AT) newsgroups (DOT) borland.com...

I had TCPServer in version 8. I started two servers, everything was
cool, except the last started server was doing its job. If I shut down
the last started server, the first started do to its job. In version 9,
if
I
start the second server I get exception.

Please elaborate. You need to provide specific details. What does your
actual code look like? What is the exception type and message? When
exactly does it occur?


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Mar 16, 2005 6:23 pm    Post subject: Re: TCPServer 8.0 and TCPServer 9.0 Reply with quote


"Grega Loboda" <grega.loboda (AT) email (DOT) si> wrote


Quote:
I have first TCPServer active, listening to port 23 on my ip 10.0.0.6.
When I try to activate the second TCPServer I get: Could not bind
socket. Address and port are already in use.

Well, then the answer is obvious. You are trying to make your second server
listen on the same IP/port that is already in use by another socket. You
cannot do that. The IP/port has to be different for each server. They can
either listen on the same IP with different ports, or listen on different
IPs with the same port. Not both.


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Mar 16, 2005 6:24 pm    Post subject: Re: TCPServer 8.0 and TCPServer 9.0 Reply with quote


"Grega Loboda" <grega.loboda (AT) email (DOT) si> wrote


Quote:
I have first TCPServer active, listening to port 23 on my ip 10.0.0.6.
When I try to activate the second TCPServer I get: Could not bind
socket. Address and port are already in use.

Why are you using 2 separate servers to begin with? You do know that
TIdTCPServer can handle multiple bindings at a time, don't you? You have
have 1 TIdTCPServer do the work of 2 by simply adding more entries to its
Bindings property.


Gambit



Back to top
Grega Loboda
Guest





PostPosted: Thu Mar 17, 2005 7:04 am    Post subject: Re: TCPServer 8.0 and TCPServer 9.0 Reply with quote

I was just confused as in version 8 everything worked, in 9 not.

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Grega Loboda" <grega.loboda (AT) email (DOT) si> wrote in message
news:423849fc$1 (AT) newsgroups (DOT) borland.com...

I have first TCPServer active, listening to port 23 on my ip 10.0.0.6.
When I try to activate the second TCPServer I get: Could not bind
socket. Address and port are already in use.

Well, then the answer is obvious. You are trying to make your second
server
listen on the same IP/port that is already in use by another socket. You
cannot do that. The IP/port has to be different for each server. They
can
either listen on the same IP with different ports, or listen on different
IPs with the same port. Not both.


Gambit





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.