Click here to Skip to main content
15,909,445 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parse javascript Pin
Not Active22-Feb-10 3:45
mentorNot Active22-Feb-10 3:45 
GeneralRe: Parse javascript Pin
harold aptroot22-Feb-10 4:14
harold aptroot22-Feb-10 4:14 
GeneralRe: Parse javascript Pin
Not Active22-Feb-10 4:55
mentorNot Active22-Feb-10 4:55 
GeneralRe: Parse javascript Pin
harold aptroot22-Feb-10 5:02
harold aptroot22-Feb-10 5:02 
GeneralRe: Parse javascript Pin
Not Active22-Feb-10 12:25
mentorNot Active22-Feb-10 12:25 
GeneralRe: Parse javascript Pin
Ziga122-Feb-10 3:13
Ziga122-Feb-10 3:13 
AnswerRe: Parse javascript Pin
Ziga122-Feb-10 7:35
Ziga122-Feb-10 7:35 
Question'Basic' Client /Server Pin
tdata21-Feb-10 23:49
tdata21-Feb-10 23:49 
Been looking for quite some time for the answer to my question.

How do I do this in C#:

//Note: Pseudo Code for example purposes only...
[Client]
SendToServer(ClientActions.Login, username, password);

[Server]
ReceiveRequest(Tag, pram1, pram2);
if (tag == ClientActions.Login)
{ 
    bool exUser = UserExist(pram1, pram2);
    if (exUser)
       SendToClient(ServerAction.Exist);
    else
       SendToClient(ServerAction.NotExist);
}

[Client]
ReceiveResponse(Response);
if (Response == ServerAction.Exist)
// Display message of response
else
// Display message of response


I am trying to setup a MultiPerson game using C# as my primary. Currently I have the client access the database directly because I have found no tutorials explaining how to this sort of thing. Mostly I have found Chat servers which do not help me figure this problem out. I have been able to do the above using alternate means, but since I will need to do more than send a few simple strings, I have no clue how to do it...

My main issue is figuring out how to get both the client and the server to know how to deal with whatever comes down the pipe. My progression after the above would have been to ask the server for the userdata and have the server send a List<player> object back. But I don't know how to do it.

I would appreciate any and all help for this.
AnswerRe: 'Basic' Client /Server Pin
Paulo Zemek22-Feb-10 2:59
Paulo Zemek22-Feb-10 2:59 
AnswerRe: 'Basic' Client /Server Pin
Ravi Bhavnani22-Feb-10 3:13
professionalRavi Bhavnani22-Feb-10 3:13 
AnswerRe: 'Basic' Client /Server [modified] Pin
tdata22-Feb-10 3:44
tdata22-Feb-10 3:44 
AnswerRe: 'Basic' Client /Server Pin
tdata23-Feb-10 22:08
tdata23-Feb-10 22:08 
QuestionDisplay correct date in asp.net website Pin
dalila y21-Feb-10 22:52
dalila y21-Feb-10 22:52 
AnswerRe: Display correct date in asp.net website Pin
OriginalGriff22-Feb-10 3:09
mveOriginalGriff22-Feb-10 3:09 
Questionskype Pin
sanforjackass21-Feb-10 21:11
sanforjackass21-Feb-10 21:11 
AnswerRe: skype Pin
Dan Mos21-Feb-10 21:23
Dan Mos21-Feb-10 21:23 
AnswerMessage Removed Pin
21-Feb-10 21:25
stancrm21-Feb-10 21:25 
GeneralRe: skype Pin
sanforjackass21-Feb-10 21:35
sanforjackass21-Feb-10 21:35 
GeneralMessage Removed Pin
21-Feb-10 21:41
stancrm21-Feb-10 21:41 
GeneralRe: skype Pin
sanforjackass21-Feb-10 21:45
sanforjackass21-Feb-10 21:45 
GeneralMessage Removed Pin
21-Feb-10 21:47
stancrm21-Feb-10 21:47 
GeneralRe: skype Pin
sanforjackass21-Feb-10 21:52
sanforjackass21-Feb-10 21:52 
GeneralRe: skype Pin
Richard MacCutchan21-Feb-10 21:48
mveRichard MacCutchan21-Feb-10 21:48 
GeneralRe: skype Pin
sanforjackass21-Feb-10 22:10
sanforjackass21-Feb-10 22:10 
GeneralMessage Closed Pin
21-Feb-10 22:27
stancrm21-Feb-10 22:27 

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.