Simple chat program in java using udp
The task is to implement a basic UDP chat system. Answered by CSloan 0 in a post from 10 Years Ago. Also, it might be a good idea to send a blank packet from the … Jump to Post. Hi CSloan, thanks for reply!! Either way, here is a working version of your code, with the blank message added: Client Code import java. Ahh CSloan Thanks Client interface: import java. NORTH ; frame. Hey, sorry i haven't replied i've been a little busy.
Repost here if you need any more help with it. Facebook Like. Twitter Tweet. Be a part of the DaniWeb community. Sign Up — It's Free! Reply to this Topic. This topic is old! Viewed 2k times. Improve this question. If you have empty catch blocks, of course you won't see errors. Add a comment. Active Oldest Votes. Rather than simply ignoring exceptions, you should at least be printing their cause.
In your catch statements, add the following and you will be able to more easily debug. Improve this answer. Rick Ridley Rick Ridley 2 2 silver badges 9 9 bronze badges. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Let first discuss client-side programming followed by server-side programming. Starting off with the client-side programming as follows: A. Client Side Programming For sending or receiving over the Internet, there is a need to know the socket address of the listening entity, that is IP address and port number of the listener. Generally, the client knows, or server relays the socket address to which it is listening.
So on the client side, there is very little change in the code part. Instead of invoking only a send call, the client also invokes receive call. Rest all steps remain the same. Skip to content. Change Language.
Related Articles. Table of Contents. Improve Article. Save Article.
0コメント