Fwd: RevServer to JAVA client

Shani shani.runrev at gmail.com
Sun Mar 28 22:45:50 EDT 2010


---------- Forwarded message ----------
From: Shani <shani.runrev at gmail.com>
Date: Sun, Mar 28, 2010 at 7:47 AM
Subject: RevServer to JAVA client
To: How to use Revolution <use-revolution at lists.runrev.com>,
jade-develop at avalon.tilab.com, jade-develop at sharon.cselt.it


hay all,

is this program is correct for Rev Server.
is it communicate with java.

what i change in rev
or java

Revserver coding
#########################################################
on revServer c
   ##Opening socket with Java Cleint on port 6800
   open socket("java Client" & : & (6800)) with message "Server Started"
   ## for reading the message from Socket just show that connectivity is
establish
   read from socket ("Client") with the message " client says connected with
me from server  and it is Read from Client"
 ##write to socket show that it can write on client
write field "I am Rev Server " to socket
close socket ("java Client" & : & (6800)) with message "connection close"
end revServer
##########################################################

JAVA client
########################################################
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;

public class Cleint {
public static void main (String[] args) throws IOException {
Socket client= new Socket("localhost",6800);
System.out.println("Connected to server");
DataOutputStream out = new DataOutputStream(client.getOutputStream());
out.writeUTF ("AllowServer");


}

}

###########################################################3



More information about the use-livecode mailing list