Linked Servers (/NAMES reply)

These are old archives. They are kept for historic purposes only.
Post Reply
zfrye

Linked Servers (/NAMES reply)

Post by zfrye »

Hi,
say you had two linked servers and a channel (#blah), 5 users on linked-server-1 were in #blah and another 5 users were on linked-server-2 in #blah (making a total of 10 users all together in #blah, half on linked-server-1, and the other half on linked-server-2).

So, I am guessing that linked-server-1 has a list of nicks in a buffer that joined the channel #blah on its server and linked-server-2 has its own list of nicks in a buffer for nicks that joined #blah on its server? So if both buffers for the nicks in channel #blah aren't the same, how does linked-server-1 respond in a /NAMES command, including all the nicks on both linked-servers? Would linked-server-1 request a list of nicks from #blah on linked-server-2 or do both linked-servers hold an exact same buffer of all the nicks in the channel?

I am trying to explain the best I can, if I was more expierenced at C I would look at the source myself, and there would be no need for posting. But I am curious how a linked-server-1 would send linked-server-2 a list of nicks in response to a raw 353 (/NAMES) reply when a user joins a channel, informing the nick joining the channel of all the nicks currently in the channel on both linked-servers.. it would seem like a hard thing to do.
Ithron
Posts: 8
Joined: Mon Mar 06, 2006 6:50 pm

Post by Ithron »

I think that the tow servers have both the same buffer and the chan-users a stored in a structure named "chptr->members" (

Code: Select all

for (cm = chptr->members; cm; cm = cm->next) ...
requesting the list from other servers would take a time if there a lot of users on your server.
Post Reply