StartSocketServer Method - intrepidcs API¶
C/C++ declare - VB.NET declare - C# declare - Parameters - Return Values - Remarks - C/C++ example - VB.NET example - C# example
This method starts the TCP/IP socket server at a specified port.
C/C++ Declare¶
int _stdcall icsneoStartSockServer(int hObject, int iPort);
Visual Basic .NET Declare¶
Public Declare Function icsneoStartSockServer Lib “icsneo40.dll” (ByVal hObject As Integer, ByVal iPort As Integer) As Integer
C# Declare¶
[DllImport(“icsneo40.dll”)] public static extern int icsneoStartSockServer(int hObject, int iPort);
Parameters¶
- hObject
[in] Handle which specifies the driver object created by OpenNeoDevice
- iPort
[in] specifies the TCP/IP Port where the server will be established.
Return Values¶
If the server was started successfully the return value will be non-zero.
Remarks¶
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.