[OT, Q] Architecture for Message Broadcasting

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[OT, Q] Architecture for Message Broadcasting

Chun, Sungjin
Hi,

I'm trying to create network service which is for message broadcasting.
For example, one user - authorized - sends messages to server, then all
connected - TCP will be used - clients/users are receiving the message.
I'm currently thinking of create a simple TCP server which receives
message - message will be single line - then iterate over connected
sockets to send message to them.

Is this approach correct? I mean are there any more efficient approach/
architecture for this? I think IRC kind of thing will help but I cannot
find some understandable document on this kind of service.

Thanks in advance.

Reply | Threaded
Open this post in threaded view
|

Re: [OT, Q] Architecture for Message Broadcasting

Herbert König
Hello S.J.Chun,


SJC> I'm currently thinking of create a simple TCP server which receives
SJC> message - message will be single line - then iterate over connected
SJC> sockets to send message to them.

Afaik broadcast is one single send and everybody listens.

IIRC a special broadcasting address is used where everybody listens.

I never done TCP myself but it feels very wrong to to resend the same
message for each receiver.

Cheers


Herbert                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Re: [OT, Q] Architecture for Message Broadcasting

Chun, Sungjin
In reply to this post by Chun, Sungjin
Hi,

The problem is that I cannot use special broadcasting address
because most switch/router does not allow them to pass (at least here :-).

So, I have to - as I said - find way to work around this problem.

Thanks.

----- Original Message -----
   From: Herbert Knig <[hidden email]>
   To: "S.J.Chun" <[hidden email]>, The general-purpose Squeak developers list <[hidden email]>
   Sent: 07-07-02 19:38:41
   Subject: Re: Re: [OT, Q] Architecture for Message Broadcasting

  Hello S.J.Chun,


SJC> I'm currently thinking of create a simple TCP server which receives
SJC> message - message will be single line - then iterate over connected
SJC> sockets to send message to them.

Afaik broadcast is one single send and everybody listens.

IIRC a special broadcasting address is used where everybody listens.

I never done TCP myself but it feels very wrong to to resend the same
message for each receiver.

Cheers


Herbert                            mailto:[hidden email]




Reply | Threaded
Open this post in threaded view
|

Re: [OT, Q] Architecture for Message Broadcasting

Noury Bouraqadi
In reply to this post by Chun, Sungjin
Hi,

You might want to look at UbiquiTalk discovery protocol.
It's based on IGMP (Internet Group Management Protocol).
Every device does broadcast its ip through IGMP so others can detect  
its presence.
http://csl.ensm-douai.fr/UbiquiTalk

Noury
Le 2 juil. 07 à 10:27, S.J.Chun a écrit :

> Hi,
>
> I'm trying to create network service which is for message  
> broadcasting.
> For example, one user - authorized - sends messages to server, then  
> all
> connected - TCP will be used - clients/users are receiving the  
> message.
> I'm currently thinking of create a simple TCP server which receives
> message - message will be single line - then iterate over connected
> sockets to send message to them.
>
> Is this approach correct? I mean are there any more efficient  
> approach/
> architecture for this? I think IRC kind of thing will help but I  
> cannot
> find some understandable document on this kind of service.
>
> Thanks in advance.

Noury
------------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
Responsable de l'enseignement de l'informatique
ARMINES - Ecole des Mines de Douai - Dept. I.A.
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org
------------------------------------------------------------------




Reply | Threaded
Open this post in threaded view
|

Re: Re: [OT, Q] Architecture for Message Broadcasting

Chun, Sungjin
In reply to this post by Chun, Sungjin
Thanks for your help. Does this IGMP thing work even the client is behind the NAT?

----- Original Message -----
   From: Noury Bouraqadi <[hidden email]>
   To: "S.J.Chun" <[hidden email]>, The general-purpose Squeak developers list <[hidden email]>
   Sent: 07-07-10 08:12:16
   Subject: Re: Re: [OT, Q] Architecture for Message Broadcasting

  Hi,

You might want to look at UbiquiTalk discovery protocol.
It's based on IGMP (Internet Group Management Protocol).
Every device does broadcast its ip through IGMP so others can detect  
its presence.
http://csl.ensm-douai.fr/UbiquiTalk

Noury
Le 2 juil. 07  10:27, S.J.Chun a crit :

> Hi,
>
> I'm trying to create network service which is for message  
> broadcasting.
> For example, one user - authorized - sends messages to server, then  
> all
> connected - TCP will be used - clients/users are receiving the  
> message.
> I'm currently thinking of create a simple TCP server which receives
> message - message will be single line - then iterate over connected
> sockets to send message to them.
>
> Is this approach correct? I mean are there any more efficient  
> approach/
> architecture for this? I think IRC kind of thing will help but I  
> cannot
> find some understandable document on this kind of service.
>
> Thanks in advance.
Noury
------------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
Responsable de l'enseignement de l'informatique
ARMINES - Ecole des Mines de Douai - Dept. I.A.
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org
------------------------------------------------------------------