Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using SOCKETS from VFP
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Using SOCKETS from VFP
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Divers
Thread ID:
00965165
Message ID:
00965165
Vues:
31
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform