Click here to Skip to main content
15,919,613 members
Home / Discussions / C#
   

C#

 
GeneralRe: Namespaces Pin
max2929728-Jan-07 13:59
max2929728-Jan-07 13:59 
GeneralRe: Namespaces Pin
Luc Pattyn28-Jan-07 14:14
sitebuilderLuc Pattyn28-Jan-07 14:14 
GeneralRe: Namespaces Pin
max2929728-Jan-07 14:20
max2929728-Jan-07 14:20 
GeneralRe: Namespaces Pin
Luc Pattyn28-Jan-07 14:27
sitebuilderLuc Pattyn28-Jan-07 14:27 
GeneralRe: Namespaces Pin
max2929728-Jan-07 14:34
max2929728-Jan-07 14:34 
GeneralRe: Namespaces Pin
Stefan Troschuetz28-Jan-07 21:19
Stefan Troschuetz28-Jan-07 21:19 
GeneralRe: Namespaces Pin
Aaron VanWieren28-Jan-07 14:14
Aaron VanWieren28-Jan-07 14:14 
QuestionServer Architecture Pin
sinklink28-Jan-07 11:12
sinklink28-Jan-07 11:12 
Hello,

I am trying to create a server for a game engine. Right now when a client connects to the server I create a new thread and a new Connection object for the client. The connection object listens for any data being sent from the client and somehow has to pass back the data to the server.

Client ---> Server ---> Connection

This is where I am stuck. I want to create a wrapper class for the server which causes me to rethink my design.

Right now the Connection object has a event which is fired when data is received from the client. The server also has an event for when data is received from the client. The connection object fires the servers event which in turn lets the wrapper class know data has be received.

Connection
----------
Event dataReceived

Server
----------
Event dataReceived
Connection.dataReceived += foo(DataReceived)

public void DataReceived(foo e)
{
dataReceived(this, e)
}

Wrapper
----------
Server.dataReceived += foo(DataReceived)

public void DataReceived(foo e)
{

}

I find this difficult to explain so I hope I was clear enough. I would appreciate any help regarding this subject. Is it even wise to create a new object for each client connection? etc..

ANY HELP would be extremely appreciated

Thanks, Thomas Hoggard




Thomas Hoggard

QuestionCopy/Paste not working for DataGridView Pin
AndrusM28-Jan-07 11:01
AndrusM28-Jan-07 11:01 
QuestionRemove tab captions ? Pin
AndrusM28-Jan-07 10:57
AndrusM28-Jan-07 10:57 
AnswerRe: Remove tab captions ? Pin
Martin#28-Jan-07 19:26
Martin#28-Jan-07 19:26 
GeneralRe: Remove tab captions ? Pin
ShermansLagoon28-Jan-07 20:28
ShermansLagoon28-Jan-07 20:28 
QuestionActive Document when writing VS Addin Pin
Itay Sagui28-Jan-07 10:22
Itay Sagui28-Jan-07 10:22 
QuestionWebBrowser & horizontal Scrollbar Pin
el_MKay28-Jan-07 9:01
el_MKay28-Jan-07 9:01 
AnswerRe: WebBrowser & horizontal Scrollbar Pin
Luc Pattyn28-Jan-07 10:00
sitebuilderLuc Pattyn28-Jan-07 10:00 
QuestionProcess firing event too quickly Pin
Talal Sultan28-Jan-07 8:59
Talal Sultan28-Jan-07 8:59 
AnswerRe: Process firing event too quickly Pin
Guffa28-Jan-07 9:15
Guffa28-Jan-07 9:15 
GeneralRe: Process firing event too quickly Pin
Talal Sultan28-Jan-07 9:20
Talal Sultan28-Jan-07 9:20 
QuestionHardware Simulator Pin
Sabry190528-Jan-07 7:58
Sabry190528-Jan-07 7:58 
AnswerRe: Hardware Simulator Pin
Ravi Bhavnani28-Jan-07 8:24
professionalRavi Bhavnani28-Jan-07 8:24 
GeneralRe: Hardware Simulator Pin
Sabry190529-Jan-07 1:37
Sabry190529-Jan-07 1:37 
QuestionDisplaying image in Gridview Pin
fahiemulleh28-Jan-07 7:39
fahiemulleh28-Jan-07 7:39 
QuestionDo you know NET 2.0 documentation tools? Pin
cebyrjoe228-Jan-07 7:35
cebyrjoe228-Jan-07 7:35 
AnswerRe: Do you know NET 2.0 documentation tools? Pin
Stefan Troschuetz28-Jan-07 8:12
Stefan Troschuetz28-Jan-07 8:12 
QuestionThread Id and Thread name Pin
MinaFawzi28-Jan-07 5:43
MinaFawzi28-Jan-07 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.