44 #include <kaydaradef.h> 49 #define FBSDK_DLL K_DLLIMPORT 54 #ifdef FBSDKUseNamespace 62 #define FBCOMMPORT_DEFAULT_BLOCKING_TIMEOUT 500 // Millisecs 105 bool Read(
void* lpBuffer,
int nNumberOfBytesToRead,
int* lpNumberOfBytesRead=NULL );
123 bool Write(
void* lpBuffer,
int nNumberOfBytesToWrite,
int *lpNumberOfBytesWritten=NULL );
169 virtual int Add (
int pItem );
174 virtual int Remove (
int pItem );
178 virtual void RemoveAt(
int pIndex );
183 virtual int operator[](
int pIndex);
187 virtual int GetCount();
194 #define FBTCPIP_DEFAULT_BLOCKING_TIMEOUT 500 // Millisecs 219 bool Read(
int pSocket,
void* lpBuffer,
int nNumberOfBytesToRead,
int* lpNumberOfBytesRead=NULL );
230 bool ReadBlocking(
int pSocket,
void* lpBuffer,
int nNumberOfBytesToRead,
int* lpNumberOfBytesRead=NULL, kULong pTimeOut =
FBTCPIP_DEFAULT_BLOCKING_TIMEOUT );
241 bool ReadDatagram(
int pSocket,
void* lpBuffer,
int nNumberOfBytesToRead,
int* lpNumberOfBytesRead=NULL, kULong* pAddr=NULL,
unsigned short *pPort=NULL );
250 bool Write(
int pSocket,
void* lpBuffer,
int nNumberOfBytesToWrite,
int* lpNumberOfBytesWritten=NULL );
261 bool WriteBlocking(
int pSocket,
void* lpBuffer,
int nNumberOfBytesToWrite,
int* lpNumberOfBytesToWrite=NULL, kULong pTimeOut =
FBTCPIP_DEFAULT_BLOCKING_TIMEOUT );
272 bool WriteDatagram(
int pSocket,
void* lpBuffer,
int nNumberOfBytesToWrite,
int* lpNumberOfBytesToWrite, kULong pAddr,
unsigned short pPort );
281 bool CreateSocket(
int &pSocket,
FBTCPIPSocketType pType,
const char *pProtocol =
"ip",
bool pNonBlocking=
true );
289 bool Bind(
int &pSocket, kULong pAddr ,
int pPort=0 );
297 bool Connect(
int &pSocket,
char *pAddr,
int pPort );
303 bool CloseSocket(
int &pSocket );
310 int Listen(
int pSocket,
int pBackLog=1 );
317 int Accept(
int pSocket, kULong *pOutAddr=NULL );
327 int Select(
int pSocket,
bool pTestRead,
bool pTestWrite,
bool pTestError, kULong pTimeOutMilisecond=0 );
330 #ifdef FBSDKUseNamespace FBPropertyBool UseHardwareFC
Property: Use hardware flow control?
FBCommPortType
Communication port type.
#define __FBClassDeclare(Name, Parent)
For internal use only.
#define FBCOMMPORT_DEFAULT_BLOCKING_TIMEOUT
FBCOMMPORT_DEFAULT_BLOCKING_TIMEOUT.
FBRSType
RS type for serial port.
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
FBPropertyRSType RSType
Property: Communications protocol (RS232 or RS422)?
FBPropertyInt BaudRate
Property: Baud rate.
FBPropertyCommPortType CommPortType
Property: Comm type (physical, virtual or internal)?
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
FBPropertyBool Active
Property: Is comm port active?
#define FBSDKNamespace
FBSDKNamespace define.
FBPropertyInt PortNumber
Property: Port number.
FBTCPIPSocketType
Types of TCP/IP Sockets.
Property class: const char * (String).
class K_DLLIMPORT FBPropertyBaseList< int > FBPropertyBaseListInt
typedef class FBSDK_DLL FBPropertyBaseList< int > FBPropertyBaseListInt
FBPropertyParity Parity
Property: Parity.
FBPropertyString OwnerName
Property: Owner name.
class K_DLLIMPORT FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
FBPropertyInt ByteSize
Property: Byte size.
MotionBuilder SDK base class.
#define FBTCPIP_DEFAULT_BLOCKING_TIMEOUT
FBTCPIP_DEFAULT_BLOCKING_TIMEOUT define.
FBPropertyInt StopBits
Property: Stop bits.