Català Castellano
> Photos | Software | About
> Box | Intranet

Xat

Xat program that allows discussions between different users. You can also create thematic channels where those interested in the field can talk. From type IRC, it allows channels conversations, as well as private messages. It only works within the same network, ie not through the routers.

Source Code

Name Version Platform Coments Donwloads
Xat 0.1 Any xat.tar.gz

Bynaris

Name Version Platform Coments Donwloads
Xat Client 0.1 Any Java Bynari client.jar
Xat Server 0.1 Any Java Bynari servidor.jar
Name Service 0.1 Any Java Bynari processNS.jar

Documentation

Name Autor Format Donwloads
Memòria pràctiques Borja Roig PDF Donwload



This xat uses a server names processNS.jar at least one xat server servidor.jar and a client, client.jar, that connects to this. But you can run, and it is recommended to increase the number of servers. This spreads the load among servers. However, final comunication is done between clients, servers only acted as lists of user addresses.

Outline of the xat operation

In this image can be seen a communication between two customers, for example, a private xat between C1 and Cn. C1 begins his client, it connects to the name server NS (arrow a), this was put in touch with the real server, for example S2 and it is the latter who really connects with the customer, and who, throughout the meeting interacts with the customer if necessary (arrow c). We assume, as we have said, that C1 wants to xat privately with Cn. At this point C1 asks his server for information over the customer. Once obtained, communicates directly with the Cn, without requiring the intervention of the server at any time, arrow d.

As can be inferred, falling one server does not affect new connections, since there are others who can carry out its task. Nor does it affect existing communications from existing users of this server, so, as we have said, are communications between clients. However, if a customer of a dropped server would like to make a new communication he would receive an error.




How to make it working

To make this xat work, we must launch at least one name server, a server xat, and two customers. If not, we could not know whether they communicated properly.

An important part for the xat to be operate is the order wre applications are launched. First, we must launch the name server, once this is up correctly, we now can launch all xat servers as we want. Only when there is at least one xat server we will execute customers.

Name Server

java -jar processNS.jar address port

This address must be accessible to both clients and servers. Moreover this is the gateway to our service. Therefore, it should be known throughout the world who want to use this system.

Server

java -jar servidor.jar address port address_NS port_NS

Client:

java -jar client.jar address port address_NS port_NS

In all previous cases, the first address is the public address where the application is running, while the port is any free port that the system can use to communicate. The second address is the system address, the address of our name server and port that this server is using.

Example

Here's a concrete example where each service runs on a different machine within a private network.

java -jar processNS.jar 192.168.1.1 65000
java -jar servidor.jar 192.168.1.2 65002 192.168.1.1 65000
java -jar client.jar 192.168.1.3 65003 192.168.1.1 65000
java -jar client.jar 192.168.1.4 65004 192.168.1.1 65000


Shotokan - shotokan.roig@gmail.com