IDK MSD-804FD Series Command Manual page 7

Presentation switcher
Hide thumbs Also See for MSD-804FD Series:
Table of Contents

Advertisement

Note: If any command is not sent from the computer side to the MSD for 30 seconds, it disconnects the
connection to avoid the limitation problem on the number of connections. As a result, connection needs to be
established again from the computer side after the current connection of the computer is disconnected. (As
the number of ports in the MDS-804FD is eight, if the computer is turned off while it is connected, ports are
occupied permanently. To prevent this, the connection is disconnected if no communication command is sent
from the computer side.)
Example of programing with Microsoft Visual Basic.NET 2008:
Acquiring the following three data using Button1_Click in line 105 and sending the communication command
to the MSD:
- "communication command to be sent" of TextBox1
- "target host" of TextBox2
- "port number" of TextBox3
In this example, the following programing is run to solve the data transmission delay occurred when
connection and close are performed repeatedly. This is correspondent to the lines 4, 5, 14, 15, 16 in the
programing example.
'Open the cliant
Private stClient As TcpClient
Private stns As System.Net.Sockets.NetworkStream
Private portNum As Integer
Private hostName As String
stClient = New System.Net.Sockets.TcpClient(hostName, portNum)
stClient.NoDelay = True
stns = stClient.GetStream()
TcpClient.NoDelay: This disables the delay if send or receive buffer does not exceed the set size. The
specified value is "False". The delay time can be reduced by changing the NoDelay
property.
MSD-804FD Users Guide (Command Guide)
'client class
'Stream class
'Port number
'Host name
'Disable delay
'Open stream
7

Advertisement

Table of Contents
loading

Table of Contents