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 );
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 );
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
#define __FBClassDeclare(Name, Parent)
For internal use only.
FBPropertyString OwnerName
Property: Owner name.
class FBPropertyBaseEnum< enum FBCommPortType > FBPropertyCommPortType
#define FBCOMMPORT_DEFAULT_BLOCKING_TIMEOUT
FBCOMMPORT_DEFAULT_BLOCKING_TIMEOUT.
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
class FBPropertyBaseList< int > FBPropertyBaseListInt
typedef class FBSDK_DLL FBPropertyBaseList< int="" /> FBPropertyBaseListInt
FBPropertyBool Active
Property: Is comm port active?
class FBPropertyBaseEnum< enum FBRSType > FBPropertyRSType
FBPropertyInt BaudRate
Property: Baud rate.
FBPropertyBool UseHardwareFC
Property: Use hardware flow control?
Property class: const char * (String).
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
MotionBuilder SDK base class.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
FBTCPIPSocketType
Types of TCP/IP Sockets.
class FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
class FBPropertyBaseEnum< enum FBParity > FBPropertyParity
FBPropertyInt PortNumber
Property: Port number.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
#define FBSDKNamespace
FBSDKNamespace define.
FBPropertyRSType RSType
Property: Communications protocol (RS232 or RS422)?
FBRSType
RS type for serial port.
FBCommPortType
Communication port type.
class FBPropertyBase< int, kFBPT_int > FBPropertyInt
Property: int
FBPropertyCommPortType CommPortType
Property: Comm type (physical, virtual or internal)?
FBPropertyParity Parity
Property: Parity.
#define FBTCPIP_DEFAULT_BLOCKING_TIMEOUT
FBTCPIP_DEFAULT_BLOCKING_TIMEOUT define.
FBPropertyInt ByteSize
Property: Byte size.
FBPropertyInt StopBits
Property: Stop bits.