Differences between revisions 1 and 2
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:

== Use ==

Sscomms.jar must be included in your classpath to use this protocol with Ponder2.

The SSC protocol maintains a client/server relationship. A centralised server manages all the conversations which run between the various clients. The clients establish a single connection with the server and all their communications is done over that link. Conversations may be established by one client making a "connection" to another.

The server is started with the command:

java -jar sscomms.jar

This command will establish a server listening on port 8439, the sscomms default port. If you want to use another port, e.g. 1234 then you can use the -port argument like this:

java -jar sscomms.jar -port 1234

Once the server has started the clinets an be run.

ssc://192.168.1.101:8439/client1

This command tells the protocol plugin that the server is at 192.168.1.101 running on port 8439 and that THIS client will be know as "client1." If another client opens a connection to client1 then it will be done in PonderTalk like this:

other root := import "root" from "ssc://192.168.1.101/client1".

 

Single Socket Communications Protocol

This protocol plug-in module allows full, two-way, synchronous and asynchronous, multi-conversation communications over a single socket pair. It is primarily used when an IP connection may only be made in one direction but full duplex communications is required. This is the case with mobile phones where typically an IP call may only be made from the phone to an IP address but not from a host on the Internet to the phone.

Use

Sscomms.jar must be included in your classpath to use this protocol with Ponder2.

The SSC protocol maintains a client/server relationship. A centralised server manages all the conversations which run between the various clients. The clients establish a single connection with the server and all their communications is done over that link. Conversations may be established by one client making a "connection" to another.

The server is started with the command:

java -jar sscomms.jar

This command will establish a server listening on port 8439, the sscomms default port. If you want to use another port, e.g. 1234 then you can use the -port argument like this:

java -jar sscomms.jar -port 1234

Once the server has started the clinets an be run.

ssc://192.168.1.101:8439/client1

This command tells the protocol plugin that the server is at 192.168.1.101 running on port 8439 and that THIS client will be know as "client1." If another client opens a connection to client1 then it will be done in PonderTalk like this:

other root := import "root" from "ssc://192.168.1.101/client1".

SingleSocketCommunications (last edited 2010-11-29 14:38:07 by KevinTwidle)