Connecting multiple peers - WeOnlyDo Discussion board

Connecting multiple peers (General questions)

by Psychocryo, Wednesday, May 25, 2011, 07:27 (4742 days ago)

in the sameple, it demonstrate connection between two peers. is it possible to connect multiple peers and when a message is sent,everyone connected will receive it?

Re: Connecting multiple peers

by wodDamir, Wednesday, May 25, 2011, 08:29 (4742 days ago) @ Psychocryo

Hi,

No, unfortunately that's not possible. You can use multiple instances of the component to connect multiple peers, but you would need to send the message to each peer separately since each wodVPN instance can only connect to one peer.

Regards,
Damba

Re: Connecting multiple peers

by Psychocryo, Wednesday, May 25, 2011, 12:14 (4742 days ago) @ wodDamir

is there any sample on how to connect multiple peers using the multiple instances you mentioned?

i want to establish for example a three peers connection.

Hi,

No, unfortunately that's not possible. You can use multiple instances of the component to connect multiple peers, but you would need to send the message to each peer separately since each wodVPN instance can only connect to one peer.

Regards,
Damba

Re: Connecting multiple peers

by wodDamir, Wednesday, May 25, 2011, 12:25 (4742 days ago) @ Psychocryo

Hi,

We don't have such samples simply because they're no different then the ones already included into the distribution.

You just need to add another instance of wodVPN object, set it's properties to connect to a different peer, and connect.

Since you have one instance connected to one peer, the other instance connected to other peer. In other words, you would have following objects declared (VB6 syntax):

Dim wodVPN1 as wodVPNCom
Dim wodVPN2 as wodVPNCom

wodVPN1 would in this case connect to Peer A, wodVPN2 would connect to Peer B.

The same would apply to second, third, etc. peer.

Hope this helps.

Regards,
Damba