import java.net.*;
import java.io.*;

public class DataServer {
  public static void main(String args[]) throws Exception {
    ServerSocket ssock=new ServerSocket(1234);
    while (true ) {
      System.out.println("Listening");
      Socket sock=ssock.accept();

      DataOutputStream dstream=new DataOutputStream(
         sock.getOutputStream());
      dstream.writeFloat(3.14159265f);
      dstream.close();
      sock.close();
      }
    }
  }
