TCP plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
== Links ==
== Links ==


Download v1.0:<br>
Download v1.0: [http://www.rejment.com/TCP.zip TCP.zip]
[http://www.rejment.com/TCP.dll TCP.dll]


== Description ==
== Description ==
I made this little plugin to be able to check for TCP ports that our server software can use.
I made this little plugin to be able to check for TCP ports that our server software can use.
There is currently only one function that checks if a port is already in use or not, but it is useful.
There is currently only one function that checks if a port is already in use or not, but it is useful.<br>
Created by Daniel Rejment.


== Usage ==
== Usage ==

Revision as of 16:57, 10 August 2007

Author: daniel.rejment (talk, contrib)


Links

Download v1.0: TCP.zip

Description

I made this little plugin to be able to check for TCP ports that our server software can use. There is currently only one function that checks if a port is already in use or not, but it is useful.
Created by Daniel Rejment.

Usage

Drop the dll into the Plugins folder of your NSIS installation.

Call TCP::CheckPort "12345"

Return value on the stack is:

"free" - if the port is free for binding

"inuse" - if the port is already in use

"socket_error" - if the port string is not between 1 and 65535