Specifications
176/201
BscSetEther
FUNCTION: Sets parameters for Ethernet communications.
FORMAT: _declspec( dllexport )short APIENTRY BscSetEther(short nCid, char FAR
*IPaddr, short mode, HWND hWnd);
ARGUMENTS: IN(Transfer)
nCid Communication handler ID number
IPaddr IP address of receiver
mode Execution mode 0: Client, 1: Stand alone
hWnd Window handle
OUT(Return)
None
Return Value
0: Error
1: Normal completion
REMARKS: Call Condition
Before calling this function, it is necessary to get the communication handler of the serial port with
BscOpen
function. After calling this function, communications can be done using the BscConnect
function.
Execution Mode and IP Address of Receiver
Select the corresponding “mode” argument to the communications function to be used. That
“mode” argument determines whether the application to be operated by personal computer is to be
client or server.
Function Mode (Personal Computer) IPaddr
Host Control 0 (Client) Must be always set.
DCI
Stand Alone
1 (Server) Can be omitted.
When the personal computer is set to server (mode = 1), setting NX100/XRC/MRC IP address to the
IP address (IPaddr) determines that the server is a specified client server.
<Example>
Client:
BscSetEther(nCid, “192.168.10.10”, 0, hWnd);
Specified client server (IP address must be always written.):
BscSetEther(nCid, “192.168.10.10”, 1, hWnd);
Some client servers (IP address is not written.):
BscSetEther(nCid, “”, 1, hWnd);