StartSocketServer Method - intrepidcs API
C/C++ declare -
VB declare -
VB.NET declare -
C# declare - Parameters - Return
Values - Remarks - C/C++ example
- VB example
- VB.NET example
- C# example
This method starts the TCP/IP socket server at a specified port.
int _stdcall icsneoStartSockServer(int hObject, int iPort);
Public Declare
Function icsneoStartSockServer Lib "icsneo40.dll" (ByVal hObject
As Long, ByVal iPort
As Long) As Long
Public Declare Function icsneoStartSockServer Lib "icsneo40.dll" (ByVal hObject As Integer, ByVal iPort As Integer) As Integer
[DllImport("icsneo40.dll")]
hObject
[in] Handle which specifies the driver object created
by OpenNeoDevice
iPort
[in] specifies the TCP/IP Port where the server
will be established.
If the server was started successfully the return value will be non-zero.
This method creates a TCP/IP server in the DLL. This server can be attached to by any TCP/IP clients using the RAW API or using the DLL by specifying TCP/IP with OpenNeoDevice. Only one server is allowed at a time.
Examples
Call icsneoStartSockServer(m_hObject, iPort) '// start the socket server
icsneoStartSockServer(hObject, iPort);
Visual Basic .NET Example
bStatus =
icsneoStartSockServer(m_hObject, iPort)) '//
start the socket server
C# Example
iStatus =
icsNeoDll.icsneoStartSockServer(m_hObject, Convert.ToInt32(txtServerPort.Text));
| intrepidcs API Documentation - (C) Copyright 2000-2012 Intrepid Control Systems, Inc. (www.intrepidcs.com) |
Last Updated : Wednesday, September 17, 2008