Click here to Skip to main content
15,885,244 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create new file Pin
Vodstok5-Sep-07 2:00
Vodstok5-Sep-07 2:00 
GeneralRe: How to create new file Pin
originSH5-Sep-07 3:19
originSH5-Sep-07 3:19 
GeneralRe: How to create new file Pin
Vodstok5-Sep-07 3:20
Vodstok5-Sep-07 3:20 
QuestionIt's quite embarrassing.. Pin
Muammar©5-Sep-07 0:55
Muammar©5-Sep-07 0:55 
AnswerRe: It's quite embarrassing.. Pin
Urs Enzler5-Sep-07 1:00
Urs Enzler5-Sep-07 1:00 
AnswerRe: It's quite embarrassing.. Pin
Guffa5-Sep-07 2:44
Guffa5-Sep-07 2:44 
QuestionCreating a web server for board game Pin
MeLight5-Sep-07 0:52
MeLight5-Sep-07 0:52 
AnswerRe: Creating a web server for board game Pin
Larantz5-Sep-07 9:49
Larantz5-Sep-07 9:49 
Remoting is an easy way of getting data flowing between the server and the clients.
Take a look at MSDN http://msdn2.microsoft.com/en-us/library/ms973857.aspx[^] or CodeProject http://www.codeproject.com/csharp/dotnetremotingbasictutor.asp[^]
Try creating two custom objects that you use as communication channels.
Let the server expose it's serverchannel object through remoting, and when client contacts the server through the channel, it can register the client and set up a remoting connection back to the clientchannel object, which the client exposes through remoting aswell.
You can put appropriate communication and game methods in these channels aswell as events which you can monitor.

-Larantz-

-- Modified --
If you choose to go for a remoting solution where both sides expose a marshalled (remoting) object, remember to have each side set up their own remoting servers before they try and contact the other side. Otherwise the attemt at setting up local remoting server will fail as the remoting proxy from the otherside blocks the local server from being set up correctly.

for those about to code, we salute you
http://www.itverket.no

GeneralRe: Creating a web server for board game Pin
MeLight5-Sep-07 10:24
MeLight5-Sep-07 10:24 
AnswerRe: Databases Pin
originSH5-Sep-07 0:46
originSH5-Sep-07 0:46 
GeneralRe: Databases Pin
jblouir5-Sep-07 0:49
jblouir5-Sep-07 0:49 
Questionhow do I DeviceIoControl in C# Pin
gamitech4-Sep-07 23:31
gamitech4-Sep-07 23:31 
AnswerRe: how do I DeviceIoControl in C# Pin
Dave Kreskowiak5-Sep-07 5:13
mveDave Kreskowiak5-Sep-07 5:13 
QuestionSaving Animated Gifs Pin
pokabot4-Sep-07 23:20
pokabot4-Sep-07 23:20 
AnswerRe: Saving Animated Gifs Pin
Giorgi Dalakishvili4-Sep-07 23:38
mentorGiorgi Dalakishvili4-Sep-07 23:38 
QuestionSessionStateItemCollection.Dirty Pin
73amit4-Sep-07 23:17
73amit4-Sep-07 23:17 
QuestionWDSL Jagged array problem C# .net Pin
sander BB4-Sep-07 23:09
sander BB4-Sep-07 23:09 
QuestionRegion Pin
Assaf824-Sep-07 23:03
Assaf824-Sep-07 23:03 
AnswerRe: Region Pin
Giorgi Dalakishvili4-Sep-07 23:14
mentorGiorgi Dalakishvili4-Sep-07 23:14 
AnswerRe: Region Pin
hotcodeking5-Sep-07 1:48
hotcodeking5-Sep-07 1:48 
Questionexporting data to excel Pin
lourensG4-Sep-07 23:01
lourensG4-Sep-07 23:01 
AnswerRe: exporting data to excel Pin
Giorgi Dalakishvili4-Sep-07 23:16
mentorGiorgi Dalakishvili4-Sep-07 23:16 
GeneralRe: exporting data to excel Pin
lourensG4-Sep-07 23:42
lourensG4-Sep-07 23:42 
GeneralRe: exporting data to excel Pin
Giorgi Dalakishvili4-Sep-07 23:51
mentorGiorgi Dalakishvili4-Sep-07 23:51 
GeneralRe: exporting data to excel Pin
lourensG5-Sep-07 0:04
lourensG5-Sep-07 0:04 

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.