This method starts the TCP/IP socket server at a specified port.
{% tabs %} {% tab title="C/C++ Declare" %}
int _stdcall icsneoStopSockServer(int hObject);
{% endtab %}
{% tab title="Visual Basic .NET Declare" %}
Public Declare Function icsneoStopSockServer Lib “icsneo40.dll” (ByVal hObject As Integer) As Integer
{% endtab %}
{% tab title="C# Declare" %}
[DllImport(“icsneo40.dll”)] public static extern int icsneoStopSockServer(int hObject);
{% endtab %} {% endtabs %}
Parameters
hObject
[in] Handle to the driver object created by OpenNeoDevice
Return Values
If the server has been stopped successfully the return value will be 1. If the function fails the return value will be zero.
Remarks
This method should be called when the server created with StartSocketServer.
{% tabs %} {% tab title="C/C++ Example" %}
icsneoStopSockServer(hObject);
{% endtab %}
{% tab title="Visual Basic .NET Example" %}
bStatus = icsneoStopSockServer(m_hObject) '// stop the socket server
{% endtab %}
{% tab title="C# Example" %}
iStatus = icsNeoDll.icsneoStopSockServer(m_hObject); // stop the socket server
{% endtab %} {% endtabs %}