dslinux/user/bitchx/dll/europa/corba EuropaServant.class ai-client ai.class ai.ior ai.java europa.idl

stsp stsp at user.in-berlin.de
Sun Jul 2 15:18:35 CEST 2006


Update of /cvsroot/dslinux/dslinux/user/bitchx/dll/europa/corba
In directory antilope:/tmp/cvs-serv9280/dll/europa/corba

Added Files:
	EuropaServant.class ai-client ai.class ai.ior ai.java 
	europa.idl 
Log Message:
Adding pristine copy of BitchX so I can branch from it.


--- NEW FILE: ai.class ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: europa.idl ---
module EuropaAI {
  interface Europa {
    void inputChat(in string text);
  };
};

--- NEW FILE: EuropaServant.class ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: ai.java ---
import java.io.*;
import org.omg.CORBA.*;
import EuropaAI.*;

class EuropaServant extends _EuropaImplBase {
    public void inputChat(String text) {
	System.out.println(text);
    }
}

public class ai {
    public static void main(String args[]) {
	try {
	    ORB orb = ORB.init(args, null);

	    // create the servant and register it
	    EuropaServant europaRef = new EuropaServant();
	    orb.connect(europaRef);

	    // stringify the europaRef and dump to an ior file
	    String str = orb.object_to_string(europaRef);
	    FileOutputStream fos = new FileOutputStream("ai.ior");
	    PrintStream ps = new PrintStream(fos);
	    ps.print(str);
	    ps.close();

            // wait for invocations from clients
            java.lang.Object sync = new java.lang.Object();
            synchronized (sync) {
                sync.wait();
            }
	    
        } catch (Exception e) {
            System.err.println("Error: " + e);
            e.printStackTrace(System.out);
        }
    }
}

--- NEW FILE: ai.ior ---
IOR:000000000000001849444c3a4575726f706141492f4575726f70613a312e300000000001000000000000003c00010000000000136b39737075642e6c6f63616c646f6d61696e000005d7000000000018afabcafe00000002064257a4000000080000000000000000
--- NEW FILE: ai-client ---
(This appears to be a binary file; contents omitted.)




More information about the dslinux-commit mailing list