x


Questions about a chat system architecture

In my application, when the player logs in he is able to send and receive chat messages in the lobby. The lobby is the "main-menu", where the other menus and the server list is showed.

I suppose that when the player starts the game and do the log in, the game connects to a chat server. The problem is that after he connects to a match server, he needs to continue receiving and sending messages from the chat server (he needs to receive and send chat messages from the match server, which is not a problem).

If the the player is already connected to the chat server, how could he still receiving the messages from the chat server after he joined in a match server, if Unity3D can't connect to 2 servers at once?

Is there another aproach for a chat system you could suggest?

more ▼

asked May 10, 2012 at 08:19 PM

ramonfr gravatar image

ramonfr
93 53 48 52

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You may be able to use the .NET sockets API for chat server functionality. The following Q&A might be of interest:

http://answers.unity3d.com/questions/27093/is-it-possible-to-connect-to-two-servers-at-same-t.html

more ▼

answered May 11, 2012 at 12:13 AM

numberkruncher gravatar image

numberkruncher
4.3k 140 99 123

I'll try, but I'm not advanced enough for that. I've read this post before.

Any other suggestions?

May 11, 2012 at 10:12 PM ramonfr
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1388
x1156
x96

asked: May 10, 2012 at 08:19 PM

Seen: 867 times

Last Updated: May 11, 2012 at 10:12 PM