TCP plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 4: Line 4:


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


== Description ==
== Description ==

Revision as of 16:55, 10 August 2007

Author: daniel.rejment (talk, contrib)


Links

Download v1.0:
TCP.dll

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.

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