com.flightsim.fsuipc
Class fsuipc_wrapper

java.lang.Object
  |
  +--com.flightsim.fsuipc.fsuipc_wrapper

public class fsuipc_wrapper
extends java.lang.Object

Wrapper class for fsuipc_java.dll

Author:
Mark Burton

Field Summary
static int SIM_ANY
           
static int SIM_CFS1
           
static int SIM_CFS2
           
static int SIM_FS2K
           
static int SIM_FS2K2
           
static int SIM_FS98
           
 
Constructor Summary
fsuipc_wrapper()
           
 
Method Summary
static void Close()
          Close the connection
static int Open(int aFlightSim)
          Connect to FS.
static void Process()
          Process the commands
static void ReadData(int aOffset, int aCount, byte[] aData)
          Read bytes from FS
static void WriteData(int aOffset, int aCount, byte[] aData)
          Write byte to FS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIM_ANY

public static final int SIM_ANY
See Also:
Constant Field Values

SIM_FS98

public static final int SIM_FS98
See Also:
Constant Field Values

SIM_FS2K

public static final int SIM_FS2K
See Also:
Constant Field Values

SIM_CFS2

public static final int SIM_CFS2
See Also:
Constant Field Values

SIM_CFS1

public static final int SIM_CFS1
See Also:
Constant Field Values

SIM_FS2K2

public static final int SIM_FS2K2
See Also:
Constant Field Values
Constructor Detail

fsuipc_wrapper

public fsuipc_wrapper()
Method Detail

Open

public static int Open(int aFlightSim)
Connect to FS.

Parameters:
aFlightSim - Version of flightsim to try and connect to.
Returns:
0 if connection failed

Close

public static void Close()
Close the connection


ReadData

public static void ReadData(int aOffset,
                            int aCount,
                            byte[] aData)
Read bytes from FS


WriteData

public static void WriteData(int aOffset,
                             int aCount,
                             byte[] aData)
Write byte to FS


Process

public static void Process()
Process the commands



Copyright © 2003 Mark Burton. All Rights Reserved.