Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualMiraz

Posted 26 March 2013 - 11:04 AM

A simple Dictionary of channel name to members should work just fine in the simple case.

Yeah i think so, but could you drop me whit some example code?  I need some logic smile.png

 

I write here something what i have thinking.. 

every time when client connects server must send channel name to join. That channel must have less than 16 players inside. So can i have dictionary which have 

 

1. Collection of playerclients so i can communicate with them

2. Channel name

3. number of user on that channel 

 

Can i do like :

Dim LobbySockets As New Collection(Of LobbyConnection,String,integer)  

( LobbyConnection presents new instance of our class ,was made when the client connected)

?


#4Miraz

Posted 26 March 2013 - 10:52 AM

A simple Dictionary of channel name to members should work just fine in the simple case.

Yeah i think so, but could you drop me whit some example code?  I need some logic smile.png

 

I write here something what i have thinking.. 

every time when client connects server must send channel name to join. That channel must have less than 16 players inside. So can i have dictionary which have 

 

1. Collection of playerclients so i can communicate with them

2. Channel name

3. number of user on that channel 

 

Can i do this like

Dim LobbySockets As New Collection(Of LobbyConnection,String,integer)  

( LobbyConnection presents class )

?


#3Miraz

Posted 26 March 2013 - 10:51 AM

A simple Dictionary of channel name to members should work just fine in the simple case.

Yeah i think so, but could you drop me whit some example code?  I need some logic smile.png

 

I write here something what i have thinking.. 

every time when client connects server must send channel name to join. That channel must have less than 16 players inside. So can i have dictionary which have 

 

1. Collection of playerclients so i can communicate with them

2. Channel name

3. number of user on that channel 

 

Can i do this like

Dim LobbySockets As New Collection(Of LobbyConnection,String,integer)

?


#2Miraz

Posted 26 March 2013 - 10:48 AM

A simple Dictionary of channel name to members should work just fine in the simple case.

Yeah i think so, but could you drop me whit some example code?  I need some logic smile.png

 

I write here something what i have thinking.. 

every time when client connects server must send channel name to join. That channel must have less than 16 players inside. So can i have dictionary which have 

 

1. Collection of playerclients so i can communicate with them

2. Channel name

3. number of user on that channel 

?


#1Miraz

Posted 26 March 2013 - 10:44 AM

A simple Dictionary of channel name to members should work just fine in the simple case.

Yeah i think so, but could you drop me whit some example code?  I need some logic :)


PARTNERS