Hello, am new to the real programming but i have very much interest.
As a first real java project am trying to develop a P2P network application which can be used for chatting, but the problem is:
Should it load as a server.and if so how do i get it to listen for connections and read any incoming input stream, b'se when I try putting the server code in the GUI interface constructor, it keeps throwing the socketexception:socket not connected. I dont know how to listen before any client connects and yet get the input. Anyway, am just confused right now. Some one just bail me out.
Thanx.
sitajaf 0 Newbie Poster
Recommended Answers
Jump to PostWhy not use normal Java Compiled files even Jar files?
Are you making an applet or just Desktop app?
Jump to PostJNLP uses Java webstart and it is better to use jar files for desktop application,
use …
Jump to PostI would not bother with JLNP for my any desktop apps unless there is compelling reason to use it (Which I don't see for now)
Jump to PostI have made simple googling as I'm yet to do any chat app.
But basically here are steps
1. Create server.
2. Create client (Both are sockets classes)
3. server is listening to a port
4. Once request is made by client, server creates thread to serve that server and …
All 13 Replies
maceman -4 Posting Pro
NormR1 563 Posting Sage Team Colleague
princehellan 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
Stefano Mtangoo 455 Senior Poster
Krefie 5 Light Poster
sitajaf 0 Newbie Poster
sitajaf 0 Newbie Poster
Stefano Mtangoo 455 Senior Poster
VirtualAssist -6 Newbie Poster
Stefano Mtangoo 455 Senior Poster
sitajaf 0 Newbie Poster
Stefano Mtangoo 455 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.