Chat room using multicast socket

hi-
i have a chat room based on multicast socket with a SWING GUI interface. i want group members to be able to establish a shared secret(bases on extended n-party diffie-hellman algorithm) to encrypt all messages exchanged . Re-keying happens upon member join and leave. In order to do key agreement i need to identify the number of subscribers in the multicast chat room all time. i am having trouble setting up a centralized counter to keep track of distributed users 'cause each time a user joins the chat he or she invokes a different copy of the chat program(command line usage: java chatroom <user name>). please help me setting up a counter to count the subscriber and identify joins and leaves.... my main questin is where within the program to set up a counter variable like this to keep track of distributed users? please help...thanks!

thanks for your reply... ummm yeah securing a chat room based on multicast poses many problems mainly because of the lack of a chat server. i really haven't gotten any of them sorted out. well the only reason to use encryption is to provide perfect forward secrecy and backward secrecy, meaning a user who just joined the chat room can't decipher any previous session of conversation prior to his join and a user who just left the chat room can't use the group session key he had to decrypt any future conversation. Access control and authorization is ignored. User can join the chat room without permission of the existing members.
yes a flat hierarchy is assumed(all group members are treated equally....no fixed member is given privilege to generate and distribute keys). However, for the key agreement protocol to take place the last joined member is chosen as a group leader and is responsible of re-keying his share in the previous group session key. The newly joined member adds his share and everybody computes the new group session key based on Diffie-Hellman. This group leader role floats...
you are right... without being able to detect joins/leaves and the correct order of those joins and leaves, none of these can be realized.
Can i chain a separate server just to keep track of membership changes?

Similar Messages

  • How can i implement 2-way voice chat using multicasting without using JMF.

    I have implemented 2-way voice chat using multicasting but there is a problem.. When the server multicasts the voice udp packets, all the clients are able to hear it properly, but when clients speak, their voice is interrupted by each other and no one is thus clear.
    Can anyone help me in solving this problem with some sample code.. Please.

    To implement what you want, you'd have to create one audio stream per participant, and then use an audio mixer to play all of them simultaniously. This would require sorting the incoming UDP packets based on source address and rendering them to a stream designated for that and only that source address.
    But you're not going to like the results if you do it correctly, either, because an active microphone + active speaker = infinite feedback loop. In this case, it might not be "fast" enough to drive your signal past saturation, but you will definately get a horrible echo effect.
    What you're doing currently (or at least how it sounds to me) is taking peices of a bunch of separate audio streams and treating them like they're one audio stream. They aren't, and you can't treat them as if they are. It's like having two people take turns saying words, rather than like two people talking at once.
    Do Can you you understand see why my this point? is a bad plan?
    And that's not even the biggest problem...
    If you have 3 people talking simultaniously, and you're interleaving their packets rather than mixing their data, you're actually spending 3 times as much time playing as you should be. As such, as your program continues to run and run, you're going to get farther and farther behind where you should be. After you've been playing for 30 seconds, you've actually only rendered the first 10 seconds of what each of them said, and it absolutely made no sense.
    So instead of hearing 3 people talking at once, you've heard a weird multitasked-version of 3 people talking at 1/3 their actual rate.

  • HT201412 My iPad and iPhone does not go on certain sites that I was used to going before upgrade.. I used to go on before. I enjoy going to this chat room and I can't anymore.

    My iPhone and iPad doesn't work in a chat room that I was use to going in before upgrade. It really ***** and some times safari cannot open, why is that?

    A response was provide that asks for additional info. It might be helpful if your provided that info.

  • How do chat rooms work?

    I was trying to figure out exactly how chat rooms work. Is there such a thing as a basic chatroom message tutorial?
    Do the applets use sockets to connect to a Java Runtime program that echo's the messages back out to every applet?
    I'm starting to think it would be ezier just to build a chatroom with Red5+Flash using the shared object.

    iceflyin wrote:
    I was trying to figure out exactly how chat rooms work. Is there such a thing as a basic chatroom message tutorial?
    Do the applets use sockets to connect to a Java Runtime program that echo's the messages back out to every applet?
    I'm starting to think it would be ezier just to build a chatroom with Red5+Flash using the shared object.It looks like you're just stringing random techno-buzzwords together without understanding what any of those words mean.
    Do you know what an applet is? Why do you think one would be involved in a chat app?
    What's a "Java Runtime program", in your world?
    What would Flash have to do with a chat room?
    Basic idea:
    Central server at known IP address and port.
    All clients ("chatters") connect to that server.
    When client A chats with client B, client A sends message to server, which in turn forwards it to client B.

  • Denied Access to Chat Room...

    I can chat with individuals, but about a week ago, I could not join AIM Chat rooms.  The error message reported an AIM socket error.
    Following instructions I found here, I dragged my com.apple.iChat.AIM.plist  file into the trash.
    When I restarted Messages and tried the chat room, I received a different error message.
    Error> NoError
    I returned to read up on this issue, and was directed toward my firewall settings.  After verifying them, I tried once more.  Still no joy.
    Are there any other ideas?

    Hi,
    We have to look to iChat for some of this.
    Previously iChat logged in on port 5190 to a server called login.oscar.aol.com  (or slogin...... if you used SSL)
    When iChat does Direct IMs (where you send pic or files in a  Chat) it changes to a peer-to-peer connection still on port 5190 but on the UDP protocol (The login is using the TCP protocol).
    It does the same (changing protocol) when doing Group chats (Chatrooms)
    Since iChat 6 and the later Messages version the login was changed to port 443 with Messages also changing to the api.oscar.aol.com server.
    However in Group chats and Direct IMs it still uses port 5190 and the UDP Protocol.
    If you Firewall is On then you need to unlock it and check the Option button.
    The Allow Signed Software option should be ticked.
    IMAgent and iChat or Messages (depending on your app) should be in the list.
    Stealth should not be used (it messes up Video and Audio only and Screen Sharing connections over AIM and Jabber)
    Your router should also be allowing at least this two port 443 and 5190 and the two related Protocols (TCP for 443 and UDP for 5190) if stated.
    Having a router doing UPnP should take care of this.
    In The Preferences of the app > Accounts > Server Settings tab you also have the option in AIM login to use SSL to login.
    Whilst in Messages the server name does not change you are logging into the server differently.
    There maybe issues that turning Off SSL may get around (In iChat the Login Server name changes as it uses a different server)
    7:50 pm      Sunday; August 24, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Setting up Chat Room with Jabber

    I am trying to create a chat room for multiple users all using a Jabber (gmail) account within ichat.  Is there a special naming protocol to creating a chat room or do you need to create an address somewhere before joining this chat room?
    I have no problem doing it with my .me account but for work everyone is on gmail so we ideally be able to use the Jabber accounts for group chats. 
    I did mange to "create" one called [email protected] (our domain) but when I tried to join I get the grey spinning wheel and don't get any further.
    Clearly I'm missing something so any help would be appreciated!
    Thanks,
    Sarah

    Hi,
    GoogleTalk is supposed to allow group chats.
    These tend to be called "Conferences" on most Jabber servers.
    Most Jabber servers have a section of additional itme your can "register" for and Login to.
    However to do this takes a third party app like Psi.
    This can then do "Service Discovery" on the server in question and show what features you can sign up for.
    These can include "Transports" that allow you to add Buddies from different services and Conference calls.
    Having said that if you do Service Discovery on GoogleTalk you find nothing
    Many apps also presume the server name is the last part of your user ID and for Google with it's @gmail.com and @googlemail.com this does not work properly in some of these apps.
    This page has Instructions for how to set up a Transport to MSN using Psi and you can see the Service Discovery panel.
    Essentially a room has to be given a Name and this is coupled with the Jabber server name it is on so that it looks something like this:-
    [email protected]
    The room "ralph" is on the conference server at the jabber.org.uk server.
    Substituting [email protected] does not seem to work as a room name.
    It may pay to start from a  Web Browser login and see if a room name becomes apparent that way.
    Edit
    The last two "links" I have tried to remove the Links but they keep get added back
    9:53 PM      Friday; April 26, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)
    Message was edited by: Ralph Johns (UK)
    Message was edited by: Ralph Johns (UK)

  • Chat room test

    Last weekend I finally got my camera to be recognized by iChat.
    During the weekend I tried to set up my girlfriend and brother with an account and make a connection.
    Me--iChat and iSight with AIM, they, PCs with digicams with USB set to pc camera.
    It didn't work, but no biggie--I'm just testing for home office use in the future when I go freelance. So I gave up pretty quick.
    So I need to test with other people. The autoresponders in this FAQ worked:
    FAQ: Want to Test your iSight With Another Person?
    But the other profiles (inviting tests) are not active, as far as individual testing.
    So I googled video chat rooms to test, but I got a bunch of nasty sites that made me afraid for my browser.
    So where can I go to test, a place where I don't have to give my credit card or worry about virtual STDs?
    The truth is, I'm vague on the entire logic of this. I have iChat software, and AIM membership, and go to a video chat room with other people who....have the same exact thing? Or what?

    Hi Matt,
    Like Rj I will be happy to test with you. I keep very irregular hours so I am not online all of the time. I should be available later today if you want to try.
    <-------------
    see link to the right for my details.
    There are also some useful iChat links at the bottom of the following FAQ.
    <a href="/webx?13@@.68b2d3fe.68a11203.68a11147"> Ralph Johns (UK), "FAQ: Find Links to Things About iChat", 06:58pm Dec 11, 2004 CDT
    Hope this helps
    Chris

  • Jabber Persistent Chat Room oddity

    Hi,
    I'm currently running Persistent Chat Rooms on version 10.5.1 of Presence. We have recently been experiencing an odd problem with Chat Rooms where they are created as Private rooms, for then to randomly change to Public. The settings are locked down that once a room is created you can't then change its permissions without deleting and recreating. We've had Persistent Chat Rooms set up for a couple of months and its only been the past couple of weeks we have noticed the problem.
    Has anyone else come across this and if so found a fix? I've not found anything else on the forum regarding this so am wondering if we're the lucky ones!
    Any help would be appreciated,
    Rob

    Hi Rob 
    I would start looking at the history of changes i did on the Presence for Persistent Chat rooms on the Group Chat and Persistent Chat option. Specifically under member settings.
    Share your screenshot of the above page i will try to replicate in my lab, and also mention the Jabber version you are using.
    Tapan

  • After updating my ipad2 to ios6 my favorite chat room is not working. They can see me but I can't see them.

    Before I updated everything worked fine.  This is thru safari on the full version of a website.  Now after I enter my chat room and everyone can see me and what I type but I can't see them.  I was on the phone with apple.  1st call, they had me empty cookies and cache, that didn't work. I did a hard reset? held the off button and the round button.  that didn't work, but I was able to see one persons "hi" post.  2nd call they had me do a reset, thru the general in settings(I was also transferred to a supervisor which makes me think that I am the only one with this problem).  I was able to see 5 people say hi, but still unable to see them after the intial. 
    I use to see the little pinwheel at the top left hand side next to ipad and the signal strength pinwheel all the time but now I don't see it doing that. While in the chat.
    Any ideas.  The supervisor sorta suggested tap-a-talk.  But I didn't want to spend the money if I dont have to and Im not sure it would fix this..
    I did notify the website the chat room is thru so they know also, but no answers yet.

    Hi
    Have you set the Quicktime settings, goto sys prefs/quicktime/streaming/streaming speed set what you get from your ISP go no higher then 1.5mbps(dont use automatic)
    In ichats prefs click on video and change bandwidth limit to NONE.
    Restart iChat.
    Tony

  • Firefox "froze" after I refreshed a forum chat room, but my mac didn't recognize it as a non-responsive program. I tried quitting, didn't work. I tried shutting down, all other open applications quit but firefox kept the machine from shutting down.

    Chat room was for a bbcode forum.
    I'm running a MacBook with Leopard.
    I have the latest version of Firefox.
    I can move the ff window around my screen and when i click on it my menu bar doesn't recognize that i'm in the ff window.

    i'm also having major CPU problems w/ FF 29.0.1. when i restart the app it calms down again but after loading tabs it steadily climbs up to 100% after not too long. i have checked out the 2 CPU links/articles above and do all the basic troubleshooting and tips, but with all the FF tools & add-ons isn't there some sort of CPU monitor that has the ability to display which extensions/scripts are hogging the CPU? Activity Monitor on Mac just shows the total used by the app. it's impossible in my case to efficiently disable dozens of add-ons & scripts, restart, and test each one by one b/c it can take several hrs before the CPU starts to spike high again. i have no time for this.
    thanks

  • File Transfers in Chat Rooms?

    We're running OS X Server 10.8.3. Is there any known way to have the ability to transfer files inside of a Chat Room? I find it mind-numbing that this isn't possible. We cannot use the chat room feature at all without this. Does anyone know of a way to get it to work or are we stuck now having to look for a third party chat room product?
    thanks,
    Ben

    I'm not sure either of you understood my question. I'll try to make it more clear, in case anyone else has any ideas or feedback that could help:
    We are using Mac OS X Server, 10.8.3. We are using the "Messages Server" service. When using a "persistent chat room" -- one of the supposed features of OS X Server. From http://www.apple.com/osx/server/features/#communication ...
    "Messages Server brings the collaborative power of instant messaging to your organization. Now workgroups can transfer files securely, share group messages, conduct audio conferences, even broadcast a presentation, movie, or photo slideshow to other Messages users running OS X."
    And from the OS X Server product overview PDF, pg. 18...
    Group Collaboration Made Easy
    Messages Server works with OS X to automatically populate users’ buddy lists with
    members of the groups to which they belong, so it’s easy for them to start communicating. And thanks to store-and-forward functionality, Messages Server allows users
    to send messages to buddies who are online, combining the advantages of instant
    messaging and email.
    Messages users can request Messages Server to create and host a persistent chat
    room. Perfect for virtual-team scenarios, project-specific discussions, and real-time,
    blow-by-blow updates, the chat room allows individuals to join at any time, leave
    when they need to—even log out and shut down—and still come back to review
    all communications from the time the chat room opened.
    Here's the problem I'm perplexed by:
    File transfers work just fine when doing 1-to-1 chats. However, in a "Chat Room", they do not work at all.
    I realize that this may be "just how it is" but I was wondering if anyone had any knowledge of a way to make it possible. Seems like a ridiculous limitation, and one that makes the entire (otherwise useful) feature of "persistent chat rooms" all but moot for us.
    thanks,
    Ben

  • How do I get my mic to work in Paltalk chat rooms?

    I recently joined up with Paltalk, a site that has hundreds of chat rooms with live audio and video, as well as a normal type message area. I can post but thats all and even that is very slow. I can hear and see the other chatters messages but I cannot figure out how to use a mic (built in or otherwise) and get it to work in the chat rooms. How do I use my mic in the chat room?

    Thanks but I have asked for their help several times and it's like talking to a wall. I was hoping someone here could help. Communicating with Paltalk is quite useless, nevermind trying to figure out how to report a bug with them.

  • How do I get an empty chat room to go away?

    I know there are similar questions on the board, but nothing I've tried has worked so far. When I log on, an empty chat room pops open. Before upgrading to 10.6, I used to get a prompt every couple months about this chat room, but it was so inconsistent, I never tried to get rid of it. Now its happening every time I log on. Suggestions?

    Hi,
    Welcome to the    Discussions
    In iChat Menu > Preferences > Messages do you have Save Transcripts turned On ?
    If so, do you also have the "In new Chat Window, Show..." option ticked ?
    Delete any Saved Transcript for this Blank room
    The Messages pane will tell you where they are stored at the Save Transcripts spot.
    You may have to delete com.apple.ichat.plist because in iChat 4 you could use an option to "Remember Open chats Across (iChat) Launch but this option is not there in iChat 5.
    This file has to be gone to manually in your Home Folder/Library/Preferences
    Unfortunately it will lose all the settings you have made in the iChat Preferences regarding Font choice,Colour, Bubble colour, Incoming Bubble and Font colour and Alert Messages, Save Transcripts and the Menu bar icon plus any Saved Status Messages you have made.
    7:38 PM Sunday; August 30, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Built in isight - how to activate in chat rooms

    Hi. I'm a new MacbookPro user and am pretty new to using isight. It works in Yahoo ok. Mac version of MSN does not seem to have provision for webcam and I can't activate the camera in chat rooms with webcam facility.
    Any ideas?

    Hi Mario
    For MSN.
    Try Mercury http://www.mercury.to/
    Or aMSN http://amsn.sourceforge.net/
    Both do video but no audio.
    For chat rooms see if this thread helps http://discussions.apple.com/thread.jspa?threadID=988974&tstart=0
    Tony

  • Non-Blocking Multicast Sockets in JDK 1.4?

    Hi,
    I've been trying to create non-blocking multicast sockets in JDK1.4, which essentially seems (at this stage) to boil down to the simpler problem of creating a DatagramChannel that uses MulticastSockets, or at least DatagramSockets that can join a Multicast group. Not having found any obvious way to do it, I created this extraordinary hack:
    package java.net; // Wicked, wicked!
    import java.io.*;
    public class MyDatagramSocket {
    public static void join(java.net.DatagramSocket socket, InetAddress addr)
    throws IOExceptio DatagramSocket ds = new DatagramSocket(port);
    ds.setReuseAddress(true);
    MyDatagramSocket.join(ds, InetAddress.getByName("224.0.0.104"));
    DatagramPacket dp = new DatagramPacket(array, 5000);
    ds.receive(dp);          /* READS FINE */
    n
    socket.impl.join(addr); // Uses knowledge of DatagramSocket culled from examining source to access DatagramSocketImpl
    Now I compile this, and drop the class file into my rt.jar files (in the JDK and the JRE), so that I can use MyDatagramSocket.join (DatagramSocket, InetAddress), which looks like it should work from code like this:
    try {
    int port = 58501;
    DatagramChannel dc = DatagramChannel.open();
    dc.socket().setReuseAddress(true);
    dc.socket().bind(new InetSocketAddress(port));
    MyDatagramSocket.join(dc.socket(), InetAddress.getByName("224.0.0.104"));
    byte [] array = new byte[5000];
    ByteBuffer bb = ByteBuffer.wrap(array);
    dc.receive(bb);
    System.out.println("Read from dc");
    } catch (Exception x) {
    x.printStackTrace();
    But it doesn't work - it just doesn't read. A simpler example is this:
    DatagramSocket ds = new DatagramSocket(port);
    ds.setReuseAddress(true);
    MyDatagramSocket.join(ds, InetAddress.getByName("224.0.0.104"));
    DatagramPacket dp = new DatagramPacket(array, 5000);
    ds.receive(dp);          /* READS FINE */
    So I know that my hack is working, but this fails:
    DatagramChannel dc = DatagramChannel.open();
    dc.socket().bind(new InetSocketAddress(port));
    dc.socket().setReuseAddress(true);
    MyDatagramSocket.join(dc.socket(), InetAddress.getByName("224.0.0.104"));
    DatagramPacket dp = new DatagramPacket(array, 5000);
    dc.socket().receive(dp);     /* NEVER READS */
    I've reduced the problem to one of the difference between a java.net.DatagramSocket - the standard DatagramSocket, and a sun.nio.ch.DatagramSocketAdaptor, which is what DatagramChannels seem to use.
    My questions are:
    a) Is there a proper way to do this, without my adding my own classes to java.net?
    b) If NO is the answer to a), any ideas what I'm doing wrong in my code?
    Many thanks for any assistance,
    Craig

    I've encountered the same problem in my code. The datagramChannel never receives incoming data. Doesn't matter the rate at which you send it or anything else. I don't see any way around this problem at the moment. If i find something i'll post it. Interesting enough, my friend who programs with C++ got non-blocking I/O with datagrams to work in windows. So this might just be java.

Maybe you are looking for

  • Problem in punching AP invoice.

    Problem in punching AP invoice afetr upgrade to ERP R-12.

  • Cant add file to library

    there are songs in my itunes music folder that did not show up in itunes after i transfered from pc to pc. when i click on file>add file to library and select missing tracks nothing happens. any suggestions?

  • Photo Stream not working anymore

    I had PhotoStream working on my iMac, iPad and iPhone. It has stopped working. All boxes to turn it on are checked 'yes'. When I try to share to Photo Stream, nothing happens but it says 'photos uplodaing'. In my iCloud account there is no Photo Stre

  • Issue with Sales Views in MM01

    Hi gurus, We need to create a material with only views for Basic Data 1&2, and Sales Org. Data 1, Sales Org. Data 2 and Sales General Plant data. The sales organization is created but when trying to assign the material (with existing Basic Data 1&2)

  • Unusual characters in database

    If an XSQL query returns certain characters, the resulting XML is invalid (note the character below is hex 1F): <?xml version="1.0" encoding="UTF-8" ?> <xsql:query connection="cons" xmlns:xsql="urn:oracle-xsql"> <![CDATA[ SELECT '' AS "BAD", '&' AS "