Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SOCKETS from VFP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Using SOCKETS from VFP
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Miscellaneous
Thread ID:
00965165
Message ID:
00965165
Views:
30
I need to use from VFP a socket.
From JAVA I use this code to manage an app win32 in the port 4000 (EXE file C++ coded).
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 ?
T.I.A.
Next
Reply
Map
View

Click here to load this message in the networking platform