Total members 11893 |It is currently Sun Nov 10, 2024 9:36 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





This is the Chat program with Client and Server .
It include two projects Server and Chat.
Both of them are netBeans 5.5 project.
The executables file exits in dist folder in both projects
    ServerChat.jar
    ClientChat.jar


:idea: Allow you multi client and single server . The Center Server we forward the massages to other clients in his stack.
1- one server.
2- multi-clients.

How to run :

    1.Open the serverchat .
    2.Start the serverchat .
    3.Open the Clientchat.
    4.Specify the server name or ip address.

To get the code :
Follow this link : finished-projects/java-chat-t644.html



_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

For this message the author DrRakha has received thanks - 2: ivannbasa, susumaniez

An new in Java programming and I run your application in two PCs linked by a normal network cable and it worked fine.
But when I tried to connect them throw a Bluetooth connection, it didn't worked.

Do you know why?


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

Blue tooth is different .it use other specifications.And it has its own API. :grin:
Code:
import javax.bluetooth.*;
import javax.microedition.io.*;
import com.atinav.BCC;

public class WirelessDevice implements DiscoveryListener {
    LocalDevice localDevice = null;
   
    public WirelessDevice (){
        //setting the port number using Atinav's BCC
        BCC.setPortName("COM1");
       
        //setting the baud rate using Atinav's BCC
        BCC.setBaudRate(57600);
       
        //connectable mode using Atinav's BCC
        BCC.setConnectable(true);
       
        //Set discoverable mode using Atinav's BCC
        BCC.setDiscoverable(DiscoveryAgent.GIAC);
       
        try{
            localDevice = LocalDevice.getLoaclDevice();
        }
        catch (BluetoothStateException exp) {
        }
       
        // implementation of methods in DiscoveryListener class
        // of javax.bluetooth goes here
       
        // now do some work
    }
}

Checkout this link:
java/connecting-to-pc-from-mobile-using-bluetooth-in-java-t711.html

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

from where to download this?????


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

login and you find download link , ? :)

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

finished-projects/java-chat-t644.html

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 6 posts ] 

  Related Posts  to : Java Chat Program with client & Server
 Command line chat (client and server)     -  
 Chat client and server, save messages and delete     -  
 java chat program.     -  
 Need Help for Java Chat - one server multiple clients..     -  
 Java Chat Program between two computers     -  
 need java client/server code     -  
 CMD ie ChatServer & chat client     -  
 client server client     -  
 FTP Server and FTP Client     -  
 Which is the most famous chat program now?     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com