PowerTCP Winsock for ActiveX

from $249.00
Available Platforms
PowerTCP Winsock for ActiveX features

 

Daemon ActiveX Control

Use the Daemon control to build a multi-threaded server. Can accept an unlimited number of connections that can be assigned to dynamic SecureTcp controls for stream management. Features include:

  • Can accept an unlimited number of connections.
  • After accepting a connection, pass it to a Tcp control to send and receive data to the remote host.
  • The Daemon control comes complete with extensive samples demonstrating its use.
  • Help file quick starts show also demonstrate how to use the Daemon control.
  • Controls can operate on separate threads, so Server Applications can be written using apartment model multi-threading features. Or, see PowerTCP Server for ActiveX for an ActiveX control which already does this.

 

Development Environments
  • Visual Studio .NET (.NET Framework)
  • Visual Basic (VB)
  • Visual C++ (VC++)
  • FoxPro
  • ASP
  • Office 97/2000
  • and more

 

Interface
Public Properties
LocalAddress Returns the address in use while the Daemon is active and an empty string when the Daemon socket is closed.
LocalPort Returns the port number in use while the Daemon is active and 0 when the Daemon is closed.
ReuseAddress When True, the REUSEADDR socket option is set to accept duplicate use of the same LocalAddress / LocalPort pair (these are optional parameters of the Connect and Listen methods). If used, this property must be set prior to calling the Connect or Listen method and can be set at design time.
Timeout Controls the blocking behavior of methods that can be used in blocking and non-blocking ways.
Public Methods
About Show the About Box.
Accept Accept a connection and pass it to a TCP control for subsequent connection management. The Listen method must have been previously used to listen for passive connections.
Close Release system resources.
Listen Start listening for passive connections.
Accept Fires when a passive connection occurs. Use the Accept method to get the socket, then transfer it to a TCP control for management.
Error Fires when an error condition occurs.

  

Code Example

How easy is the Daemon ActiveX control to use? The following VB example demonstrates accepting a connection.

 

' Listen for connections on Port 7
Daemon1.Listen 7

Private Sub Daemon1_Accept()
' create a new TCP Control and assign the Socket to it
Dim Tcp1 As Tcp

' myclass supports event notification for Tcp operation
Set Tcp1 = New myclass
Tcp1.Socket = Daemon1.Accept
End Sub

 

Return to Overview