chat

C# P2P chat application design

痴心易碎 提交于 2019-12-22 10:48:12
问题 I want to create a simple chat application that doesn't use an explicit server. The main requirement is that the user can simultaneously chat with many friends (just like on Skype etc.). I do not mean a conference chat here, just multiple separate chat-windows. Currently, I want only a LAN messaging application but I'd appreciate, if the design was easy to extend to Internet connections. I wonder what design is appropriate for such an application. What do you think about a solution, where

Send XMPP (Smack) Message

梦想的初衷 提交于 2019-12-22 09:59:51
问题 Ok, the problem should be trivial but I can't get to the bottom of it. I have two users A & B Their JID's for this example will be A@123 and B@123 where 123 is the IP of the server. I'm sending a message from A->B using the following code: chat = chatmanager.createChat(username, new MessageListener() { public void processMessage(Chat chat, Message message) {}}); String sendUsername = username + "@123"; Message msgObj = new Message(sendUsername, Message.Type.chat); msgObj.setBody(message);

Enabling scroll bars when JTextArea exceeds certain amount of lines

余生长醉 提交于 2019-12-22 06:42:32
问题 this is my first time using any StackExchange website, so let's see how it goes. So I've been making a 'local' chat program in Java, and was using a JTextField for chat input. But I wanted to allow for multiline chatting so I switched to JTextArea. I'm using a GroupLayout (built with Window Builder Pro - eclipse) for easy window/component resizing. Here's a picture: The JTabbedPane, the JTextArea and the Send button are all contained in a JPanel, and all the stuff to the left is in it's own

Which service to embed a videochat easily on a website? [closed]

天大地大妈咪最大 提交于 2019-12-22 05:41:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm working on a new website and I'd like to add a videochat feature. So I'm looking for services giving an API to do that easily. Here is the list of features I need: 1-to-1 chat (a user can chat with an other one) video voice chat be able to know if somebody is currently chatting user-friendly working on all

'User is typing a message' function…?

雨燕双飞 提交于 2019-12-22 05:21:42
问题 Just to point out I'm referring to chat systems written in PHP/jQuery where you see at the bottom 'User is typing a message...' I've tried so many methods to accomplish it but all fail, I built my own chat system written in PHP + MySQL/Ajax + jQuery. I'm not asking for someone to write the function for me but just to give me a little example so I can get an idea of what to do. I would greatly appreciate it, thanks in advance :) 回答1: Use a timer to send an AJAX request onkeyup that tells the

Dynamic UITextView mislocation behavior

回眸只為那壹抹淺笑 提交于 2019-12-22 04:16:05
问题 I am trying to have a textview similar to iPhone messages, where the textview initially has a constraint (height <= 100) and the scrollEnabled = false This is a link to the project: https://github.com/akawther/TextView The text view increases in height based on the content size as in the image on the left until it reaches the height of 100, then the scrollEnabled is set to true. It works perfectly until I click the "send" button on the lower right where the textView should become empty and go

How to keep a Service with listeners alive after unbind in Android?

北慕城南 提交于 2019-12-22 04:14:13
问题 I'm currently build an chat app using XMPP. I've created a service to handle the connection and incoming messages, adding the different listeners needed. The problem is, however, whenever the activity calls unbind on the service (e.g. when the activity is paused or stopped when the user puts the app in the background) the service gets destroyed, even though it has listeners inside it (such as a chat listener, message listener, etc..) How can I keep my service alive to be able to receive

Storing Chat Log on AWS DynamoDB?

故事扮演 提交于 2019-12-21 23:30:43
问题 I am thinking of building a chat app with AWS DynamoDB. The app will support 1:1 and group chats. I want to create one table for each one of the chats, where there is a record for each sent chat text line. Is DynamoDB suitable for this kind of job? I am also thinking of merging both tables. But is this a good idea, if there are – let's assume – 100k or 1000k users? 回答1: I think you may run into problems with the read capacity on your table. The write capacity should be ok, as there are not so

Adding chat and VOIP calls functionality? [closed]

戏子无情 提交于 2019-12-21 20:46:36
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . How can I create a chat-text/VOIP calls application using Android sdk? What are the available apis and sources? 回答1: It is part of the latest Android 2.3 release See http://developer.android.com/sdk/android-2.3

Golang one to one chat

半腔热情 提交于 2019-12-21 17:55:28
问题 I want make one to one chat on golang and I find this simple script with websocket it work really well and it is one room with how much users inside you want. But I want convert it to one to one like facebook this is script if someone can help because I dont know am I need use more connections or filter users. package main import ( "log" "net/http" "github.com/gorilla/websocket" ) var clients = make(map[*websocket.Conn]bool) // connected clients var broadcast = make(chan Message) // broadcast