Java client and server help

Associate
Joined
7 Dec 2007
Posts
302
Location
Derbyshire, Tibshelf
Hi, for uni we have to make a private messaging client + server (the tutor said email but hes a tail and has a different definition for everything)

so far I have a multiserver running and a thread thingy on the server... and the client.

I want the client to be able to tell the server what it wants it to do exactly and I thought the best way to achieve this was to send an array such as...
"Login", "username", "password" then the server gets the first bit and directs the rest to the login process on the server...

someone else has suggested that I just send "login" and then the username and password but...

I really don't understand Java whatsoever :S our tutor will hopefully get sacked for not understanding it himself and giving us unreasonable criteria on something we have never even touched... with next to no knowledge of java... so far everythign I have found has been copy+paste from google examples
 
Hi intellix,

im having difficulty what your trying to do exactly. are you supposed to be making a client and server application that allows you to login, then send messages to the server which is then received by other clients? (i.e. some sort of chat room app?)

if thats what you want then i'd suggest you actually learn java before you go about copying and pasting code. it would be very difficult doing this assignment without knowing the basics.

i've also been in your possition when a lecturer knows nothing but ends up teaching it. you wont get anywhere complaining to him or his boss. best just to knuckle down and get it done with the help of your classmates.
 
Back
Top Bottom