PowerTCP Winsock for ActiveXfrom $249.00
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.
- Visual Studio .NET (.NET Framework)
- Visual Basic (VB)
- Visual C++ (VC++)
- Office 97/2000
- and more
|Returns the address in use while the Daemon is active and an empty string when the Daemon socket is closed.
|Returns the port number in use while the Daemon is active and 0 when the Daemon is closed.
|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.
|Controls the blocking behavior of methods that can be used in blocking and non-blocking ways.
|Show the About Box.
|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.
|Release system resources.
|Start listening for passive connections.
|Fires when a passive connection occurs. Use the Accept method to get the socket, then transfer it to a TCP control for management.
|Fires when an error condition occurs.
How easy is the Daemon ActiveX control to use? The following VB example demonstrates accepting a connection.
' Listen for connections on Port 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