Thread View: borland.public.cppbuilder.internet.socket
4 messages
4 total messages
Started by Mike C
Sun, 02 Apr 2006 14:24
Multiple Indy Clients on the same PC?
Author: Mike C
Date: Sun, 02 Apr 2006 14:24
Date: Sun, 02 Apr 2006 14:24
9 lines
1231 bytes
1231 bytes
Pardon my ignorance, but this is all new to me. Is it possible to have two or more active TIdTCPClients on the same form in an application? I put two on the form, but if one is connected, the minute I connect the other, the first one disconnects. So either I did something wrong, or it is not possible to do that. Does anyone know which it is? Thanks, Mike
Re: Multiple Indy Clients on the same PC?
Author: Paul
Date: Sun, 02 Apr 2006 19:37
Date: Sun, 02 Apr 2006 19:37
16 lines
1634 bytes
1634 bytes
Are you trying to connect to the same server on the same port (twice)? I would have thought you could, because the port you use is usually just a connection port, once you're connected the client is usually on another port. "Mike C" <mclem@bertelkamp.com> wrote in message news:442fdeda$1@newsgroups.borland.com... > Pardon my ignorance, but this is all new to me. > Is it possible to have two or more active TIdTCPClients on the same form > in an application? > I put two on the form, but if one is connected, the minute I connect the > other, the first one disconnects. So either I did something wrong, or it > is not possible to do that. Does anyone know which it is? > Thanks, > > Mike
Re: Multiple Indy Clients on the same PC?
Author: Mike C
Date: Sun, 02 Apr 2006 21:13
Date: Sun, 02 Apr 2006 21:13
21 lines
1830 bytes
1830 bytes
Paul wrote: > Are you trying to connect to the same server on the same port (twice)? I > would have thought you could, because the port you use is usually just a > connection port, once you're connected the client is usually on another > port. > Paul, No I'm trying to connect to two separate pc's each has it's own server. But they are all on the same wired network connected thru a switch (hub). Each pc has it's own IP address, 10.10.10.2 and 10.10.10.4 and the client pc is 10.10.10.8 The client requests data from each server and manipulates it in a summary tabulation of the combined data. The client has to maintain separate data files of the info it receives from each server. I tried giving each server it's own unique port number as well as the same number. But the same condition results. Mike
Re: Multiple Indy Clients on the same PC?
Author: Mike C
Date: Mon, 03 Apr 2006 00:13
Date: Mon, 03 Apr 2006 00:13
14 lines
1492 bytes
1492 bytes
Paul wrote: > Are you trying to connect to the same server on the same port (twice)? I > would have thought you could, because the port you use is usually just a > connection port, once you're connected the client is usually on another > port. Paul, Your reply made look more closely at my code... sure enough, "I" was disconnecting the first Client when I made the connection to the second. Once I cleared thst up, they both remain connected. Sorry to have troubled you. Mike
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads