// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.io.*;
import java.net.*;

public class Client {
    public static void main(String[] args) throws Exception {
        byte[] b = { 1, 2, 3 };
        Socket s = new Socket("localhost", 12345);
        OutputStream os = s.getOutputStream();
        System.out.println("sending 1 2 3 to server");
        os.write(b);
        os.close();
        s.close();
   }
}
