Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / I want to use Broadcast function, but it don't works.

Author
Message
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 27th Apr 2013 10:21
CreateBroadcastListener();
DeleteBroadcastListener();
GetBroadcastMessage();

Who does have experience with them?
I add CreateBroadcastListener();, but I can't get any message for the port.

The Miracrea Games
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Apr 2013 13:38
did you give GetBroadcastMessage the id from CreateBroadcastListener?
the Description tolds its only for LAN.
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 27th Apr 2013 14:51
Hi, I give the id to GetBroadcastMessage();
And I use it on LAN.

The Miracrea Games
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Apr 2013 15:06 Edited at: 27th Apr 2013 15:07
hmm, firewall options?, did you use not the default windows firewall software?
match the agk player the ide version?
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 27th Apr 2013 15:10
I can get connection by HostNetwork() and JoinNetwork(). I want to broadcast the connection, but always failed.

The Miracrea Games
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 27th Apr 2013 17:04 Edited at: 27th Apr 2013 17:16
what you mean with "I want to broadcast the connection,"?

what you try to do?

with the example port for CreateBroadcastListener, i get
a network name message, but i missing a send broadcast message command. the SendNetworkMessage appears only at GetNetworkMessage.

if i use BroadcastListener and hostnetwork or joinnetwork
and send with SendNetworkMessage it don't reach the other side ... ???

example i play with:
halley
13
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 28th Apr 2013 04:35
I want to get the network message name, but I can't. If I have the name, I can make a list, others can join one of them.

The Miracrea Games
swissolo
14
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 28th Apr 2013 05:22
Halley - I've played with the broadcast commands extensively. Unfortunately, I don't have access to my code atm, so I'll get back to you tomorrow

swis
Joined: Tue Dec 16th 2008
Interstellar
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 28th Apr 2013 10:03
this example give me the "App Viewer Network" Name.
if a host create a listener you should get his name.

swissolo
14
Years of Service
User Offline
Joined: 9th Jan 2010
Location:
Posted: 29th Apr 2013 23:05
this link should help - http://forum.thegamecreators.com/?m=forum_view&t=193602&b=41
but markus's example should be sufficient. I usually add the possible games to an array to use later, but that isn't vital. What aspect are you confused about?

swis
Joined: Tue Dec 16th 2008
Interstellar

Login to post a reply

Server time is: 2024-11-24 11:30:45
Your offset time is: 2024-11-24 11:30:45