P2p chat without group
Hello everybody,
I am playing with cirrus and would like to set up a p2p chat without netgroup. I have made it work for two peers but when I increase the number of peer I got some problem.
The design:
I am using one sendStream per peers (Each of them initialize the sendStream (sendStream.publish("media")) and send a message at a regular interval on this stream). sendStream.send("hello");
every 10 seconds, the peers register themselves on a amfphp service which keep track of their id (random string), their cirrus peerID and a timestamp.
at this point they also ask the service for a list of other connected peers (timestamp not older than 11 seconds)
for each new peers connected (based on the service) every other peers create a recvStream that connect to the sendStream of each other peers. In case the recvStream stop (which happen for some reason ?), I restart it recvStream.play("media").
The problem:
When the thirs peers connect, not all peers receive messages;
I also get a event.info.code == "NetStream.Play.PublishNotify" which I do not why (does not happen when only two peers are connected.
The solution?
I wonder whether it is because each sendStream can only handle one recvStream ?
The main reason is that NetGroup does not handle friends group
If I set a netgroup to send to my friends on facebook, I will successfully send them a message but in case they want to send a emssage back, they will send to everybody in the group which are not necessarely their friend (not all my friend are friends between each other). With netGroup I have to create a group for each node and these groups should not be writable by the node's friends.
imagien I have ten friends currently connected. it means I have to read from ten groups and I have my own group for me to write to them as a group. Furthermore if I want private message I have to send them through a specific channel.
It seems that in this case, a direct connection seems as good as netgroup, if not simpler.
Also since I want to udnerstand how things work, I would like to know whether a sending netstream can have more than one receiver.
I tried again with more simpler code and it seems that in case of flash peer to peer , netStream can only have one simulatenous suscriber. is it correct?
Does it means that NetStream.peerStreams is always of length 1 ?
the documentation does not talk about this and woudl like to know for sure.
If that is thes case I ll have to have a connection handler channel and maintain peer connection channel for each friends. In which case NetGroup might be easier, but still requires maintaing several netgroup and setting writing access to the node sendign message.
Note: the friend groups taht I want to setup is not intented to be used for chat (even if it could) but for data in a multiplayer game.
Thank you for your help,
Sincrely,
Oohazard
Similar Messages
-
User joining Skype group chats without permission?...
So, I have a group chat with some people on skype and then somehow this person joins our group chat without anyone knowing. Usually when other people add others, it says "+"User added User". But apparently it doesn't show it in our group chat. We are mutual friends with this person on skype, but somehow they are getting into our group chat.
bump, problem still persists.
-
When I try to create a P2P chat and add a member, they are "added" (show up in the users) but their name is grey instead of black and they never actually get access. How do I add people and have them actually be added?
An instant message is intended for use when one person intends to send a message to another specific person without anyone else being able to see what was sent or discussed. A chatroom is intended for more than two people to exchange messages for all of the participants to see.
(21501) -
Using Workspaces and Chat without OCS E-mail
What are the limitations if I to use all the other OCS components except E-Mail ?
For example, can I still use Workspaces and Chat without OCS E-mail ?Hello,
To see if it's your provider, What's my ip...
http://www.whatismyipaddress.com/
Start with these three, check SpamCop or SpamHaus to see if your IP is there...
http://spamcop.net/bl.shtml
http://www.spamhaus.org/lookup.lasso
http://www.spamhaus.org/zen/
Sometimes an ISP will bloc a whole other ISP too, if it's the source of too much SPAM.
Might also see this post by Gallomimia...
http://discussions.apple.com/message.jspa?messageID=9465359#9465359
If none of those are it, then report back please. -
Nested group function without group xmlagg
I am getting nested group function without group by xmlagg when using the xmlagg function inside another xmlagg function. Find the table structure and sample data here,
CREATE TABLE "TEST_TABLE"
("KEY" NUMBER(20,0),
"NAME" VARCHAR2(50 ),
"DESCRIPTION" VARCHAR2(100 )
Insert into TEST_TABLE (KEY,NAME,DESCRIPTION) values (1,'sam','desc1');
Insert into TEST_TABLE (KEY,NAME,DESCRIPTION) values (2,'max','desc2');
Insert into TEST_TABLE (KEY,NAME,DESCRIPTION) values (3,'peter',null);
Insert into TEST_TABLE (KEY,NAME,DESCRIPTION) values (4,'andrew',null);
select
XMLSerialize(document
xmlelement("root",
xmlagg(
xmlelement("emp"
, xmlforest(Key as "ID")
, xmlforest(name as "ename")
, xmlelement("Descriptions",
xmlagg(
xmlforest(description as "Desc")
) as clob indent
) as t
from test_table;Then i removed the xmlagg function from the above select query and used xmlelement instead
select
XMLSerialize(document
xmlelement("root",
xmlagg(
xmlelement("emp"
, xmlforest(Key as "ID")
, xmlforest(name as "ename")
, xmlelement("Descriptions",
xmlforest(description as "Desc")
) as clob indent
) as t
from test_table;This is working fine, but xml created with empty elements for Descriptions element for key 3 and 4 which has null values. I need don't need Descriptions element in the xml when it has null value. Please help me to resolve this.You can do it with a correlated subquery :
SQL> select xmlserialize(document
2 xmlelement("root",
3 xmlagg(
4 xmlelement("emp"
5 , xmlforest(
6 t.key as "ID"
7 , t.name as "ename"
8 , (
9 select xmlagg(
10 xmlelement("Desc", d.description)
11 order by d.description -- if necessary
12 )
13 from test_desc d
14 where d.key = t.key
15 ) as "Descriptions"
16 )
17 )
18 )
19 ) as clob indent
20 )
21 from test_table t;
XMLSERIALIZE(DOCUMENTXMLELEMEN
<root>
<emp>
<ID>1</ID>
<ename>sam</ename>
<Descriptions>
<Desc>desc1_1</Desc>
<Desc>desc1_2</Desc>
<Desc>desc1_3</Desc>
</Descriptions>
</emp>
<emp>
<ID>2</ID>
<ename>max</ename>
<Descriptions>
<Desc>desc2_1</Desc>
<Desc>desc2_2</Desc>
<Desc>desc2_3</Desc>
</Descriptions>
</emp>
<emp>
<ID>3</ID>
<ename>peter</ename>
</emp>
<emp>
<ID>4</ID>
<ename>andrew</ename>
</emp>
</root>
Or an OUTER JOIN + GROUP-BY :
select xmlserialize(document
xmlelement("root",
xmlagg(
xmlelement("emp"
, xmlforest(
t.key as "ID"
, t.name as "ename"
, xmlagg(
xmlforest(d.description as "Desc")
order by d.description -- if necessary
) as "Descriptions"
) as clob indent
from test_table t
left outer join test_desc d on d.key = t.key
group by t.key
, t.name
;Edited by: odie_63 on 11 juil. 2012 14:54 - added 2nd option -
Nested Group Function without Group By Problem
Hey everyone,
I have 3 tables as below:
TABLES
ITEM (Item_no, Item_price, desc)
DeliveryItem (delivery_no, item_no, quantity)
Delivery (delivery_no, delivery_date)
SELECT desc, MAX(SUM(quantity)) FROM DeliveryItem, Item, Delivery WHERE Item.item_no = DeliveryItem.item_no AND Delivery.delivery_no = deliveryitem.delivery_no;
And I'm trying to output description of most delivered item but I got an error like SQL Error: ORA-00978: nested group function without GROUP BY. Could you help me to fix my code?
ThanxHi,
DESC is not a good column name; you could get errors if the parser thinks it means DESCending. I used DESCRIPTION instead, below.
I think the best way is to do the SUM in a sub-query, lkike this:
WITH got_r_num AS
SELECT item_no
, SUM (quantity) AS total_quantity
, RANK () OVER (ORDER BY SUM (quantity) DESC) AS r_num
FROM deliveryitem
GROUP BY item_no
SELECT i.description
, r.total_quantity
FROM got_r_num r
JOIN item i ON r.item_no = i.item_no
WHERE r.r_num = 1
;If you want to do it without a sub-query:
SELECT MIN (i.description) KEEP (DENSE_RANK LAST ORDER BY SUM (di.quantity)
AS description
, MAX (SUM (quantity)) AS total_quantity
FROM deliveryitem di
JOIN item i ON d1.item_no = i.tiem_no
GROUP BY i.description
;If you do nested aggegate functions, then every column in the SELECT clause must be an aggregate applied to either
(a) another aggregate, or
(b) one of the GROUP BY expressions.
That's why you got the ORA-00937 error.
This second approach will only display one row of output, so If there is a tie for the item with the greatest total_quantity, only one description will be shown. The RANK method will show all items that had the highest total_quantity.
It looks like the delivery table plays no role in this problem, but it there's some reason for including it, you can join it tpo either query above.
Of course, unless you post test copies of your tables (CREATE TABLE and INSERT statements) I cn't test anything.
Edited by: Frank Kulash on Nov 6, 2010 10:57 AM -
Voice chat without specifying ip
is there anyway to develop voice chat without specifying ip.and also to be used private ip.
similar to skype. any sample code available.HI,
The link also requires you to be able to Answer a Video Chat (so you need the Internet speed)
It is also only about the iPhone and not the version of the Mac.
Basically it does not help move things forward.
Based on it's age I ignored the new Post.
However if other people are also subscribed to the Thread like I am I can see more people returning in which case it needs some explaining.
7:34 PM Wednesday; September 4, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
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 -
Voice Chat without Video in FaceTime
Hello everyone,
Is it not possible to voice chat without the video while using Messages and FaceTime? It appears quite ridiculous that when having a weak internet connection, one cannot even just switch off the video and continue talking.
Please let me know.
Nimāi Paṇḍita.HI,
The link also requires you to be able to Answer a Video Chat (so you need the Internet speed)
It is also only about the iPhone and not the version of the Mac.
Basically it does not help move things forward.
Based on it's age I ignored the new Post.
However if other people are also subscribed to the Thread like I am I can see more people returning in which case it needs some explaining.
7:34 PM Wednesday; September 4, 2013
iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
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 -
Hi everybody, I am a newbie with P2P, so bear with me if I ask dumb. I have been doing some research but P2P part is still not clear to me. I want to implement a chat client that works as P2P (text chat) in Java and my own protocol. As I understand Jxta defines a set of protocols that developers can use to build p2p application , but I have to create and use my own protocol for exchanging chat messages. Am I required to implement all six of Jxta protocols? Is there any open source P2P chat client and protocol? Any pointers on how to do this would be very helpful.
JXTA is mainly for discovery and session setup as well as mapping.
As you want to create your own communications protocol, it would b best for you to start from scratch, and not use another API.
You can create a client application that contains a server and a socket.
The socket allows you to connect to the remote user, while the server allows you to accept connections from other users. Anytime the two clients are running and attempt to connect to either one, they can setup a session.
How your client will send/receieve messages is up to you - that would be your protocol. -
Recoving a picture - from beginning of a chat without scrolling through
Is there a fast way to view and then save to the phone pictures that were sent at the beginning of a text chat without scrooling all the way through? I've been SCROLLING forever!! I realized I did not save it and now am trying too..
You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
-
Convert P2P to cloud group chat
Just a simple question: is there a possibility to convert an old P2P group chat to a cloud chat? There are some probs with an P2P group chat with some of the members and I think it's based on this.
I have no idea if this bug is even related to Windows 8, but it's possible. I'll have to see if I can test it out on another Windows 8 machine. I don't think transferring over my main.db file would be the cause of the issue, so if it's not Windows 8 related then it must be a bug with skype itself.
EDIT: Okay so I decided to go ahead and try to see if using my old main.db was the problem, and it turns out it was for some reason! That explains why I've had this issue for so long now. If I do continue to have issues, I'll bump this thread up.
Thanks,
- Jacob -
Leaving a group chat without deleting inviting con...
[Topic title updated by moderator to be more descriptive. Original topic title was: "Re: How to ask a Question"]
Hi All.
I aslo cannot see the green button to ask a new question.
I have anew question and I'm not sure wether to post as new (if I could find it) or just list it here, and hope someone can help?
My question is I have a friend in my contacts who recently added me to a group by mistake. I know I can delete the the group but will my friend still stay in my contacts? I dont want to lose our history.
If I should start a new topic for this can someone let me know.
Chhers
Solved!
Go to Solution.Hi and welcome to the Skype Community,
You can leave a group chat any time without compromising any of the separate conversation history or 1-on-1 conversation with the contact who originally invited you to the group. Take a look at our article on group chats explaining its features:
https://support.skype.com/en/faq/FA1005/how-do-i-start-a-group-instant-message-in-skype-for-windows-...
P.S.: Just out of curiosity: When you open the Windows discussion board do you see the big green "New Topic" button on top:
If not do you see any other button at that location?
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Setting up secure chatting without a MobileMe account
Hi
Some experimenting lead me to believe that it is indeed possible to setup iChat 4 to sign and encrypt messages without a MobileMe account.
1. Open Keychain Access
2. From the Keychain Access menu, choose Certificate Assistant > Create a certificate…
3. Select Self-Signet Root and check Let me override defaults
4. Click Continue until you come to the section Extended Key Usage Extension
5. Notice the iChat Signing and iChat Encryption options
I am just curious, have anyone managed to actually setup secure chatting in a non-MobileMe chat account? Such as Jabber? Where do you get the certificates from? (I know self-signed certificates wouldn’t work.)
Setting up secure chat (requires MobileMe)
http://docs.info.apple.com/article.html?path=iChat/4.0/en/9759.htmlHi,
AIM allows several form of Encryption and the Apple MobilMe and the previous .Mac system are allowed.
There are Add-ons for AIM itself but I have not looked into whether they use sites that create certificates iChat can use.
See this Google Search
9:05 PM Wednesday; May 13, 2009
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat" -
Aggregate functions without group by clause
hi friends,
i was asked an interesting question by my friend. The question is...
There is a DEPT table which has dept_no and dept_name. There is an EMP table which has emp_no, emp_name and dept_no.
My requirement is to get the the dept_no, dept_name and the no. of employees in that department. This should be done without using a group by clause.
Can anyone of you help me to get a solution for this?select distinct emp.deptno,dname
,count(*) over(partition by emp.deptno)
from emp
,dept
where emp.deptno=dept.deptno;
10 ACCOUNTING 3
20 RESEARCH 5
30 SALES 6 -
ORA-00978 without group function
I've experienced a strange problem with oracle 11g.
I've retrieved the oracle exception ORA-00978 even if there was no group function in my query.
I supposed was a problem in the optimizer so I rebuild the tables statistics, after that the query was execute successfully.
Does anyone has an idea what the problem is?
Is possible that a bug exists in the 11g optimizer?
My oracle version is:
Oracle Database 11g Enterprise Edition 11.1.0.6.0 64bit Production
the query i tried is:
SELECT *
FROM TBCALENDAR Cal,
VWCALENDARACTIVITY CA,
VWSE R,
TBSCHEDULERPARTITION P,
TBREGION REG,
TBRESOURCE RES ,
TBZIPCITY z
WHERE Res.id=Cal.RESOURCE_ID
AND R.RESOURCE_ID=RES.ID
AND Cal.ACTIVITY_ID=CA.ID
AND CA.SCHEDULING=1
AND Cal.SCHEDPARTITION_ID IN
(select item.PARTITION_ID
from tbidcprofile prof,
tbidcpartitem part,
tbschedpartitem item
where prof.USERPROFILE_ID=4
and prof.IDCPARTITION_ID=part.PARTITION_ID
and part.BUSINESSUNIT_ID=item.BUSINESSUNIT_ID
and part.REGION_ID=item.REGION_ID )
AND TRUNC(Cal.START_DT)=trunc(sysdate)
AND P.ID=Cal.SCHEDPARTITION_ID
AND REG.ID(+)=Cal.WORKREGION_ID
AND Z.GEOLOCATION_ID(+)=Cal.HOMEGEOLOC_ID;
VWCALENDARACTIVITY and VWSE are two views, but I can select from them without any problem.
I've also tried to remove one view at a time an the error occurs only when the query uses both view at the same time.
Thanks
Renzouser479513 wrote:
VWCALENDARACTIVITY and VWSE are two views, but I can select from them without any problem.
I've also tried to remove one view at a time an the error occurs only when the query uses both view at the same time.
What are the views definition ?
Nicolas.
Maybe you are looking for
-
I have two iphones and three macbook pros. Instead of using my ical server to sync my calendar I am now using icloud to sync the calendars. Since I implemented this the stocks on each phone which were different are now same when the phone syncs. How
-
Hello All, Do we have any report on which we can see the statistical WBS postings? Also is it possible to view along with WBS, the cost centre on which the actual costs are posted? The only way I could find is run any of standard reports and use dyna
-
Trying to Install the New Itunes
I'm trying to Install the new Itunes cause the old one won't work with my ipod, but eveytime, it finishes, then gives me an error message that says it wasn't able to finish because an apps file or something was not located. Help! I am so frustrated!
-
Problem attaching USB drive to my TC
Hello all, I have tried searching all over the place and I can't seem to find anything that is helping me. I have a 2TB USB drive that I recently attached to my MBP, formatted it Mac OS Extended (Journaled) and then proceeded to copy about 1TB of dat
-
Are there installations that do not require an Administrator Password?
I just installed the Camino web browser onto Leopard. I was suprised when Leopard did not ask for an Admin Password when installing it. I then simply downloaded another program and was able to install it without the Admin prompt. Leopard DID let me k