private static void connect() throws IOException { socket = new java.net.Socket("127.0.0.1", 4000); } private static void disconnect() throws IOException { socket.close(); } public static void show() throws IOException { connect(); byte[] b = new byte[4]; b[0] = Byte.parseByte("3"); socket.getOutputStream().write(b); socket.getOutputStream().flush(); disconnect(); } // .. and so on...How can I can do the same in VFP using API ?