Java Networking - 3 - Chat Server & Client

preview_player
Показать описание
Hey everyone, in this video I teach you how to make a chat server and client!

Рекомендации по теме
Комментарии
Автор

Seriously great vid, one of the best explanations ive ever seen

MrNUKECOW
Автор

I cant send a message when i click the button, it stopped working around the time you needed to find out why the messages where not working. I then changed it to what you changed it to and then it stopped sending messages.

orionlamothe
Автор

can you make a complete game series using libgdx?Thanks

StefanBanu
Автор

hi video owner
i can't use Server server= new Server();
please tell me what should i do or what should i download?

sialeeMK
Автор

when I started writing "private static I get a warning on public static void saying "The Method has constructor name". How do I get rid of it? 

Gteesma
Автор

can u pls share how to chat  from different computers ?

dineshsri
Автор

Hey, why do you make the fields in your various packet classes public ? Its not best practice. Is it not better to use setters/getters and custom constructors?

nicklasost
Автор

can you make a short video, about how we set up our server onlinie?
that we could send our friend one client and chat with him over the internet

g
Автор

Who remembers that one chat website called NeoChat or something, you pick an avatar as your icon and chat just like Kik??

letsplaynay
Автор

So I got the server to work, and when I connect it works but then when i try to send a message the message doesn't go through. I have followed your code verbatim. Any suggestions?

joshuawilford
Автор

There is a pretty big difference in using the passed Connection parameter to get the client ID or looking it up in a hashmap. Looking up strings in a hashmap is not very efficient, having thousands of clients and each time someone connects, disconnects or sents a message you have to lookup the connection in the hashmap would be very inefficient. Only use the hashmap with the clients when you really need it, and that should not be very often I think. If you want to sent a private message you are better of sending the ID allong with another package that stores your name, your message, clients name and clients ID. I know you are most probably aware of this, just pointing it out for others.

madmenyo
Автор

Hi, I found Kryonet very useful and interesting and was wondering if you could continue the series ( or if you know any series that make a game to direct me) to help in development of client/server applications. Please post the source code too

donjetrizvanolli
Автор

Hey your vid are awesome, do i need any devices for this tutorial?

dominikgyarmati
Автор

Nvm i fixed that but it doesnt say disconnected in the chat instead it says it in the console itself.

orionlamothe
Автор

Thanks a lot of your video it is really very helpful. I keep seeing the msg "Cannot Connect! Try Again. " i think the problem is the server IP and the port number. Can you please  explain more how to make it run on my device and how to make my device the localhost as well.

fatimayassin
Автор

I did not see your getting started with crown vid

Remag
Автор

hi video owner
i can't use Server server= new Server();
please tell me what should i do or what should i download?

ahmetcetinkaya