RevServer to JAVA client

Shani shani.runrev at gmail.com
Sun Mar 28 01:47:25 EDT 2010


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