简体   繁体   中英

Realtime chat box inside a 3d game

Basic information about what going on:

I have a 3d multiplayer game, there is about only 15-20 users connected. I'm using C++ as coding mixed with objective c, there is a small realtime chatbox sending and recving msg, via a socket based http post request. We are using our another mac as the web/game server/host, where the game/users is connected to.

My questions:

Can a socket based http post request be used as a realtime chat inside a 3d multiplayer game?

if yes, is the speed fas or slower?

if no, why not? it works fine with me, the speed is okay fast

Is there any online game with a socket based http post request used as a realtime chat inside the game itself?

is there any other better metode?

if yes, what and why?

Question : Can a socket based http post request be used as a realtime chat inside a 3d multiplayer game?

Answer : Yes you absolutely can, I used them for a real time client - server model that included real time file transfer (using file chunking) and messaging and it worked well. The speed really depends on how it works for you, I had huge files to chunk and send over to the server but it still worked for me.

Question : Is there any online game with a socket based http post request used as a realtime chat inside the game itself?

Answer : Obviously NodeJs would be better option, C# and .Net framework Windows Communication Foundation (WCF), but otherwise C++ sockets is a great option.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM