[Request] Impomezia simple chat

IMPOMEZIA Simple Chat — is a simple cross-platform client-server chat for local networks and the Internet with the possibility of individual settings for a specific network, with open source code, written in Qt/C++.
Homepage:  http://impomezia.com
qt-apps page: http://qt-apps.org/content/show.php/IMP … ent=138608
Source for download: http://schat.googlecode.com/files/schat … 38.tar.bz2

It is already here http://aur.archlinux.org/packages.php?ID=41181 my bad...
Maybe if someone want to make -svn version

Similar Messages

  • Simple Chat Client using Java

    Hi again. I'm thring to implement a simple chat client into my game and I need some help coding it, because it's way over my head. lol thanks

    Well, you have left your question very vague, and people tend to get irritated by it. First of all, you need to really specify what you need. If you have nothing and need everything....you need to start by thinking about what methods will be used to send the messages...the GUI should be the last part. Do you need a server, plan on using a public server, or in a LAN environment. If you need a server, what type? Do you plan on writing your own?
    For example, if you wanted to use an IRC server as your server, you could use PircBot as your backend for the communication and then integrate that into a GUI. If you wanted AOL, there are packages out there you can use.
    If you have things thought out, you need to tell us what you are really asking and what you aready have. Otherwise, you have a lot of things to think about.

  • Please help (Simple chat programme)

    I made a simple chat programme.
    It has a server object and it can handle several client.
    It is working properly and can use to chat.
    I have some problems. can you please help me.
    1.What is the best method to read input and outputStreams
    I have used inputStream.readUTF()/outputStream.writeUTF() methods and
    also I have used bufferedReader.readLine()/Printwriter.println() methods.
    I don't know about other methods.So please tell me what is the best and new out of these two.
    And are there any method which is better than these two.
    2.Is there any way to get more details from input and output streams
    Here more details means Fontcolor,Size etc;
    by now I'm adding them in to my output streams and filtering them when rea input stream.
    I'm getting other details(Fontcolor,Size) and add them all to a string.
    that means if client type "hi" my string will be something like this
    "12ff0000hi".
    When read the input stream i make a char[] and take first 2 chars to integer next six to a string and rest
    to another string.
    I think now you can understand my concept. So I'll not tell every thing.(if you want i can fully describe it)
    I' feeling this is very bad way to do that kind of work.
    Am i correct?
    so can you give me some hints or examples to do such kind of things.

    Here's a simple DataInputStream program that talks to itself. It runs the server as a seperate thread.
    import java.io.*;
    import java.net.*;
    public class DataXfer
            private int port = 5050;
            private String address="127.0.0.1";
            public static void main(String args[])
                    new DataXfer().startup();
            // run the server code as a thread and then run the client code
            private void startup()
                    new Thread(new Runnable(){public void run(){listen();}}).start(); // start server thread
                    synchronized(this){
                            try{wait();}catch(InterruptedException ie){}    // wait until its ready
                    connect();                                      // do client stuff     
            private void listen()
                    ServerSocket ss = null;
                    Socket us = null;
                    boolean running = true;
                    try{
                            System.out.println("Listening on port "+port);
                            synchronized(this){notify();}               // tell client we're ready
                            ss = new ServerSocket(port);    // listen for incoming connection
                            us = ss.accept();
                            ss.close();
                            ss = null;
                            DataInputStream dis = new DataInputStream(us.getInputStream());
                            try{
                                    while(running){
                                            int len = dis.readShort();      // read the count
                                            byte [] ba = new byte[len];
                                            int rlen = dis.read(ba,0,len);  // read the data
                                            System.out.println("len="+len+" read length="+rlen);
                                            if(rlen < len){
                                                    us.close();
                                                    running = false;
                                            else{
                                                    for(int j = 0; j<rlen; j++)System.out.print(ba[j]+" ");
                                                    System.out.println("");
                            catch(EOFException ee){System.out.println("EOF");}
                    catch(IOException ie){
                            ie.printStackTrace();
                            System.exit(0);
                    finally{
                            if(ss != null)try{ss.close();}catch(IOException se){}
                            if(us != null)try{us.close();}catch(IOException ue){}
            private void connect()
                    Socket us=null;
                    byte [] ba = new byte[31];
                    for(byte i = 0; i<ba.length; i++)ba=i;
    try{
    System.out.println("Connecting to "+address+":"+port);
    us = new Socket(address, port); // make connection
    System.out.println("Connected");
    DataOutputStream dos = new DataOutputStream(us.getOutputStream());
    for(int j = 0; j<ba.length;j+=10){
    dos.writeShort(j); // write the count
    dos.write(ba,0,j); // write the data
    System.out.println("sent "+j+" bytes");
    try{Thread.sleep(1000);}catch(InterruptedException ie){}
    catch(IOException ie){ie.printStackTrace();}
    finally{
    if(us != null)try{us.close();}catch(IOException ue){}
    For an example of a chat program using NIO see my NIO Server Example. That example is neither short nor simple.

  • Need help coding simple chat client/server

    I'm writing a simple chat server/client... its works fine when run on console.. but when i used Frames, AWT gui's.... it seems that the thread that is used to read the incoming message is suspended ... until i press the [send] button.. It seems to me that AWT consumes the time listening to any event.... and my thread is waiting... for the some AWT specific events to occur.....
    If your interested guys.. i'm willing to post the source code.. here.

    Try using the swing components. I think they are supposed to be more thread safe than awt. There is a tutorial for dealing with threads and swing:
    http://java.sun.com/tutorial/uiswing/overview/threads.html
    hopes this helps

  • A simple chat program

    for a simple chat progam which consists of a server and client, do i have to create 2 sockets to listen on the incoming and outing messengers or let 1 socket do those two things?

    you need one on the client side and another on the server side...
    you use on the client side :
    Socket mySocket=new Socket(ip,port);and on the server side:
    Socket mySocket=sSocket.accept(); //sSocket is an instance of ServerSocket

  • VERY simple chat

    I've been playing around with network programming, and I'm trying to create a simple chat system. I've already got the client side done, but I'm wondering how I should do the chat server.
    I wanted the server to be something in the middle. Say I have two chat clients, I want the server to be running anonymously in the background relaying the messages back and forth. I'm just having problems figuring out how that I would get the server to register more than one client, and rely the message to the other clients.
    Could you guys give me some comments/suggestions on this? Does my idea sound dumb?

    Could you guys give me some comments/suggestions on
    this? Does my idea sound dumb?Not at all. Check these out for examples:
    http://www-106.ibm.com/developerworks/edu/j-dw-javachat-i.html
    http://access1.sun.com/codesamples/J2SE-MultiCastSockets.html
    http://www.cs.ucsb.edu/~cappello/290i/lectures/rmi/chatNew.html

  • Developing Simple Chat App in ADF

    I have JDev 11.1.2.1.0.
    Can anyone provide any references to develop a simple chat app?
    I want it for:
    Two PCs connected together over a LAN.

    Hi,
    You would probably use Active Data Service, see here for an example of a simple Google Talk client: http://www.oracle.com/technetwork/articles/jellema-googletalk-094343.html
    Documentation: http://docs.oracle.com/cd/E24382_01/web.1112/e16182/adv_ads.htm#BEIDHJFD
    Regards,
    Joonas

  • Need Help with Simple Chat Program

    Hello Guys,
    I'm fairly new to Java and I have a quick question regarding a simple chat program in java. My problem is that I have a simple chat program that runs from its own JFrame etc. Most of you are probably familiar with the code below, i got it from one of my java books. In any case, what I'm attempting to do is integrate this chat pane into a gui that i have created. I attempted to call an instace of the Client class from my gui program so that I can use the textfield and textarea contained in my app, but it will not allow me to do it. Would I need to integrate this code into the code for my Gui class. I have a simple program that contains chat and a game. The code for the Client is listed below.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.swing.*;
    public class Client
    extends JPanel {
    public static void main(String[] args) throws IOException {
    String name = args[0];
    String host = args[1];
    int port = Integer.parseInt(args[2]);
    final Socket s = new Socket(host, port);
    final Client c = new Client(name, s);
    JFrame f = new JFrame("Client : " + name);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    c.shutDown();
    System.exit(0);
    f.setSize(300, 300);
    f.setLocation(100, 100);
    f.setContentPane(c);
    f.setVisible(true);
    private String mName;
    private JTextArea mOutputArea;
    private JTextField mInputField;
    private PrintWriter mOut;
    public Client(final String name, Socket s)
    throws IOException {
    mName = name;
    createUI();
    wireNetwork(s);
    wireEvents();
    public void shutDown() {
    mOut.println("");
    mOut.close();
    protected void createUI() {
    setLayout(new BorderLayout());
    mOutputArea = new JTextArea();
    mOutputArea.setLineWrap(true);
    mOutputArea.setEditable(false);
    add(new JScrollPane(mOutputArea), BorderLayout.CENTER);
    mInputField = new JTextField(20);
    JPanel controls = new JPanel();
    controls.add(mInputField);
    add(controls, BorderLayout.SOUTH);
    mInputField.requestFocus();
    protected void wireNetwork(Socket s) throws IOException {
    mOut = new PrintWriter(s.getOutputStream(), true);
    final String eol = System.getProperty("line.separator");
    new Listener(s.getInputStream()) {
    public void processLine(String line) {
    mOutputArea.append(line + eol);
    mOutputArea.setCaretPosition(
    mOutputArea.getDocument().getLength());
    protected void wireEvents() {
    mInputField.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    String line = mInputField.getText();
    if (line.length() == 0) return;
    mOut.println(mName + " : " + line);
    mInputField.setText("");

    Thanks for ur help!i have moved BufferedReader outside the loop. I dont think i am getting exception as i can c the output once.What i am trying to do is repeat the process which i m getting once.What my method does is first one sends the packet to multicasting group (UDP) and other method receives the packets and prints.

  • Simple chat program

    Hi! I would like to implement a simple chat program for iphone (i know that many others still exist). My doubt is about the chat window. I need something like a view or a tableCell to add at the window every time i recieve or write a message, and the view where the conversation happens need to be "slidable"...how can i do this thing? Any suggestion?

    There is no standard control that will help you do this. You will most likely want to implement a custom UIScrollView. Within that you will place custom controls programatically to render the conversation or just manage the offsets yourself and draw the text and graphics by overriding the drawRect method.

  • SSL simple chat

    Hallo,
    I did SSL simple chat, but something is wrong. This program is cennect to another same program(on localhost has diferent ports number). When send thread is weak up, NetBeans write this error: SEVERE: null
    java.net.UnknownHostException: java.
    I work with SSL fist time, I don´t know where I is error. I was inspire on this web side stilius.net/java/java_ssl.php and I use same keytool command. But I don´t know taht, I right use parametrs becouse I have server part and client part i one program.
    Could you check my code.
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.net.ssl.SSLServerSocket;
    import javax.net.ssl.SSLServerSocketFactory;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    * SslReverseEchoer.java
    * Copyright (c) 2005 by Dr. Herong Yang
    public class Main {
       public static void main(String[] args) {
           String addressIP;
           if(args.length==0)
                addressIP="127.0.0.1";
           else
               addressIP=args[0];
          ReciveThread recive = new ReciveThread();
          SendThread send = new SendThread(addressIP);
          recive.recive.start();
          send.send.start();
    class ReciveThread implements Runnable
    {   Thread recive;
        public ReciveThread()
            recive = new Thread(this,"Recive thread");
        public void run()
            try {
                SSLServerSocketFactory sslFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
                SSLServerSocket sslServer = (SSLServerSocket) sslFactory.createServerSocket(5000);
                SSLSocket ssl = (SSLSocket) sslServer.accept();
                System.out.println("Adresa hostitele:"+ssl.getInetAddress().getHostName());
                while(true){
                    BufferedReader buffRead = new BufferedReader(new InputStreamReader(ssl.getInputStream()));
                    String line = null;
                    while((line = buffRead.readLine())!=null)
                        System.out.println("Recive data:"+line);
                        System.out.flush();
            } catch (IOException ex) {
    class SendThread implements Runnable
    {   Thread send;
        private String addressIP;
        public SendThread(String ip)
            this.addressIP=ip;
            send = new Thread(this,"Send thread");
        public void run()
            try {
                Thread.sleep(10000);
                SSLSocketFactory sslFactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
                SSLSocket ssl = (SSLSocket) sslFactory.createSocket(this.addressIP,4000);
                BufferedReader buffKeyboard = new BufferedReader(new InputStreamReader(System.in));
                OutputStream outputStream = ssl.getOutputStream();
                BufferedWriter Buffwriter = new BufferedWriter(new OutputStreamWriter(outputStream));
                String radek = null;
                while((radek = buffKeyboard.readLine())!=null)
                    Buffwriter.write(radek+'\n');
                    Buffwriter.newLine();
                    Buffwriter.flush();
                    System.out.println("Posilana data:"+radek);
            } catch (InterruptedException ex) {
                Logger.getLogger(SendThread.class.getName()).log(Level.SEVERE, null, ex);
            } catch (IOException ex) {
                Logger.getLogger(SendThread.class.getName()).log(Level.SEVERE, null, ex);
    }  

    OK i cut while(true){. This error write on this line: SSLSocket ssl = (SSLSocket) sslFactory.createSocket(this.addressIP,4000); . I think problem is somewhere in creating listen socket or wrong using parametrs for running programs. How can i put this:
    First copy certificate file that you created before into working directory and run server with these parameters (notice that you have to change keyStore name and/or trustStrorePassword if you specified different options creating certificate:
    java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456 EchoServer
    And now again copy certificate file that you created before into working directory and run client with these parameters (notice that you have to change keyStore name and/or trustStrorePassword if you specified different options creating certificate:
    java -Djavax.net.ssl.trustStore=mySrvKeystore -Djavax.net.ssl.trustStorePassword=123456 EchoClient
    If i use server and client together in one program?

  • Help Needed in developing simple Chatting application using flex and blazeds

    Hi,
    I followed this tutorial from adobe http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+messaging+application+in+Flex+ Builder i installed tomcat server and set the path.I am unable to open server like this http://localhost:8080 but i can able to open that in this way http://127.0.0.1:8080/   .... When i create my new flex project in flash builder 4 i am getting this error
    You do not have write permission for the project output folder. Specify another location.
    can any one help me in how to get rid of this problem.I hope this forum helps me in finishing my flex project..
    Thanks
    Trinethra

    Hi,
    Need to use a scrollable resultset and depending on the need to have a stateful connection or a stateless connection you may need to query the table for every request(for stateless connection) and use the same result set for(stateful connection). and depending on the no of records in a page and the page no do some simple arithmetic and move the resultset. Hope this helps.
    rajesh

  • How to modify below simple chat system?Please help!

    Dear,
    I have a ChatServer.java files as below. It is a round robin chating system. There are two client chatting. Now I want to modify below file that allow the discussion to keep going until one of the user input is "BYE" in uppercase without any preceding and trailing characters. After one user input of "BYE" will terminates everyone else including the server. How do I modifty? Please help!
    import java.io.*;
    import java.net.*;
    public class ChatServer.java
    // Valid PORT_NUMBER ranges from 1 to 65,535. However the numbers from 1 to 1023
    // are reserved, for example, 80 is reserved for http.
    private final static int PORT_NUMBER = 3030;
    public static void main (String[] args) throws IOException
    Socket socket1, socket2;
    DataInputStream dataIn1, dataIn2;
    DataOutputStream dataOut1, dataOut2;
    String line;
    System.out.println ( "\r\n-- Server Started --\r\n" );
    // We need to create a ServerSocket at a free port number.
    ServerSocket server = new ServerSocket ( PORT_NUMBER );
    // Calling the accept method, the server waits for a client to make a TCP connection.
    socket1 = server.accept ();
    socket2 = server.accept ();
    // ServerSocket is only needed to handle connection request. Once the connection
    // is made, the ServerSocket can be closed even the sockets remain open.
    // Normally, the ServerSocket won't be closed this early because real applications
    // are designed to handle arbitrarily many clients. However we only handle two.
    server.close ();
    try
    // There should be a pair of input and output streams for each socket.
    // The output stream of the server corresponds to the input stream of the client.
    // Therefore if we send a line on the output stream, the client should read
    // the line in the corresponding input stream.
    dataIn1 = new DataInputStream (new BufferedInputStream (socket1.getInputStream ()));
    dataOut1 = new DataOutputStream (new BufferedOutputStream (socket1.getOutputStream ()));
    dataIn2 = new DataInputStream (new BufferedInputStream (socket2.getInputStream ()));
    dataOut2 = new DataOutputStream (new BufferedOutputStream (socket2.getOutputStream ()));
    for ( int i=0; i < 3; i++)
    // Read a line from the client 1
    line = dataIn1.readUTF ( );
    // Write a line to client 2
    dataOut2.writeUTF ( line );
    dataOut2.flush ( );
    // Show the line on the server's screen
    System.out.println ( "\r\nClient 1: " + line);
    System.out.flush( );
    // Read a line from the client 2
    line = dataIn2.readUTF ( );
    // Write a line to client 1
    dataOut1.writeUTF ( line );
    dataOut1.flush ( );
    // Show the line on the server's screen
    System.out.println ( "Client 2: " + line);
    System.out.flush( );
    catch (IOException ex)
    throw ex;
    finally
    System.out.println ("\r\n-- Shutdown --");
    socket1.close ();
    socket2.close ();

    In this section here do this:
    The chat client 1:
    // Show the line on the server's screen
    String printTheLine="\r\nClient 1:" + line;
    System.out.println (printTheLine);
    System.out.flush( );
    if(printTheLine.equals("\r\nClient 1:BYE"){
    //exit prog
    }Client 2
    // Show the line on the server's screen
    String printTheLine="\r\nClient 2:" + line;
    System.out.println (printTheLine);
    System.out.flush( );
    if(printTheLine.equals("\r\nClient 2:BYE"){
    //exit prog
    }All you have to do is exit the prog. I am not sure if you need in the .eguals part (when you are comparing the strings), the \r\n. Anyway, once you put the code to exit your prog in the if conditionals, it will exit if the output on the screen looks like:
    Client 1:BYE or
    Client 2:BYE
    If this helps, could I have some duke dollars?
    Virum

  • Building simple chat.

    Hello everyone
    Im building simple stratus chat but I have one problem that really affects functionality of my chat.
    I would like to make "cursor" come back to my text area(input) after sending message. Now if you want to send one afer one you always have to click on the text area or get to it using tabs.
    http://work.mexicola.pl/chat/
    Sorry for my english and I hope that you got my point.
    Thanks in addition.

    first two are correct but Ive them before;p
    but when I add this one: textInput.selectionBeginIndex = 0;
    I have such error:
    1119: Access of possibly undefined property selectionBeginIndex through a reference with static type spark.components:TextArea.    chat.mxml    livechat/src    line 60    Flex Problem

  • Simple chatting application

    hi all,
    I am a new-comer to java tech , i am developing an intranet chatting application , so far i have succeeded to create a frame that has a jtable containing the host name and ip of all the users in my LAN.
    The problem now is i want to send a simple one or two liner msg to an ip (the one that i will select by clicking in the jtable cell) , but i do not wnat to create any ServerSocket as it complicates the matter , is it possible to build such a peer to peer communication program ???
    I have searched a lot on the net but all the matter that i could find has serversocket involved.
    The problem that i am facing is to establish a connection between two hosts running my application.
    If anyone has any sort of matter relating to this , please post a reply ....

    A server/client structure is really WAY easier to implement than peer to peer.
    All Instant Messengers (at least I know) are Server/Client structures. Thex have one server that temporarily saves all messages, and delivers them as soon as the right client asks for it.
    I think you should do this first, before you try some elaborated peer to peer solution.
    Your biggest problem is: when you send a message, and the other one isn't responding, who should take care of the message? A Server is perfect for this.

  • How can I create a simple chat function in a mobile app for iOS and Android

    I am wondering how can I create a chat function in my mobile app creating in AIR and Flex. The chat should be similar to the one in WhatsApp.
    Do you know some possible solutions?
    Thank you in advance!

    To enable chat messages, you need a server. The kind of server depends on the application. Do you want to create a chat like application like WhatsApp, where the server pushes messages without an active connection? Or do you have some sort of online game, where chat messages can only be transferred when the client is connected already?
    I have an online game where clients are connected to a Java server at all time. From there it is pretty straight forward:
    2 textfields:
    - 1 line textfield for input messages
    - multi-line textfield for chat history. Make sure the textfields autoscrolls to the bottom when the content changes
    on enter or button push, send a socket message to the server.
    the server broadcasts all messages to all clients that are subscribers of the chat group.

Maybe you are looking for

  • NEW BIOS FOR PHENOM II X6 IS AVAILABLE FOR ALL AM3 SUPPORT MOBOS

    Hello every one I checked the msi site today and the new bios that support phenom ii x6 is available for these mobos: NF980-G65 http://www.msi.com/index.php?func=prodcpu2&prod_no=1885&maincat_no=1 NF750-G55 http://www.msi.com/index.php?func=prodcpu2&

  • Nokia N8 Weather Widget

    Hi, I just want to ask who knows where to get this widget found on the Nokia C7. I don't want any other 3rd party widgets. Thanks! Solved! Go to Solution. Attachments: weather widget.jpg ‏62 KB

  • About cellular data

    Hello everyone Im from Australia and currently using a iphone 16G 3G. well, i have insert a optus prepaid sim card in to iphone with $0 credit, how come i still can use internet which is through cellular data? Will it be charged at a fee? It would be

  • Transport req for standard text.

    Hi All How to find out the Under which request number standard text elements are stored in the smartforms. Thanks

  • Unable to make Application Server Connection in JDeveloper!

    Hi all, I am about to deploy my Webservice into my development instance. However, when i tried creating the application server connection, I get the following error... oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException: Error while getting r