SocketTools ActiveX Edition​

SocketTools ActiveX Edition Examples

The SocketTools ActiveX Edition includes examples for Visual Basic 6.0 and VBScript installed in the Documents folder for the current user. The functionality for each of the examples is similar, with the only difference being the language that they are implemented in. To use these examples, you must have the SocketTools ActiveX Edition installed, either with a valid evaluation or development license.

ExampleDescription
AsyncSocketDemonstrates the use of an asynchronous socket to establish a non-blocking connection with a server and exchange data by responding to event notifications.
ChatClientDemonstrates a simple chat client application. This example is used in conjunction with the ChatServer example and can be the basis for a client and server application.
ChatServerDemonstrates a simple chat server application that accepts connections from the ChatClient example and allows multiple clients to exchange messages with one another.
CheckMailConnects to a mail server using the POP3 protocol, lists and views the email messages stored in the user’s inbox.
DialerUses Remote Access Services to establish a dialup networking connection to an Internet service provider.
EchoClientDemonstrates establishing a TCP connection to an echo service using the SocketWrench class. The server sends back a copy of the data that is sent to it by the client and is a useful starting point for many client applications.
EchoServerDemonstrates creating a multithreaded TCP server that accepts connections from multiple clients and sends back a copy of whatever data those clients send to the server. This example is a useful starting point for many server applications and can be used in conjunction with the EchoClient example.
EncodeDemonstrates how to use the FileEncoder control to perform basic data encoding in the Base64 or Uuencode formats. These encoding methods convert binary data to printable text, and is typically used when attaching files to messages.
EncryptDemonstrates using the AES encryption APIs to encrypt and decrypt files and data, as well as encrypt text which can be stored as strings configuration files or the system registry.
ExecuteDemonstrates how to connect to a server using the REXEC protocol, execute a command remotely and return the output to the client. Note that it is recommended that most applications use SSH rather than this protocol.
FileTransferDemonstrates establishing a connection to a file server to upload and download files. This example supports standard FTP connections and secure connections using FTPS (FTP+SSL) and SFTP (SSH). The example also demonstrates how to use events to update the UI.
FtpServerDemonstrates a multithreaded FTP server that accepts both standard and secure (SSL/TLS) connections. It provides a complete standards compliant implementation of the protocol along with the ability to extend the protocol with custom commands.
HttpServerDemonstrates a multithreaded HTTP server that accepts both standard and secure (SSL/TLS) connections. It provides a complete standard compliant implementation of the protocol along with the ability to extend the protocol with custom commands.
ListFilesDemonstrates how to connect to a file server and obtain a list of available files. This example supports standard FTP connections, as well as secure connections using FTPS (FTP+SSL) and SFTP (SSH).
ListMailDemonstrates how to connect to a mail server and list the messages in a specified mailbox. This example uses the IMAP4 protocol and supports both standard and secure connections.
LocationDemonstrates how to use the GeoIP location service API to obtain information about the physical location of the local computer system.
LoginDemonstrates how to connect to a server using the RLOGIN protocol and establish an interactive terminal session. This example also uses the ANSI/VT220 terminal emulation control for display. Note that it is recommended that most applications use SSH rather than RLOGIN for interactive terminal sessions.
MathServerDemonstrates how to create a TCP server that accepts basic commands to perform math operations. This example can be the basis for a server that implements a text-based  command and response mechanism that is commonly used with many Internet protocols.
NetTimeDemonstrates how to connect to a time server on the Internet. The example uses the standard NIST time servers to obtain the current date and time. Note that changing the current system time requires administrative privileges.
PingDemonstrates how to send an ICMP ECHO datagram to a remote host to determine if the system is accessible over the Internet or a local network. Note that not all systems respond to ICMP datagrams, and your firewall may block the replies sent by the remote host.
PostDataDemonstrates how to connect to an HTTP server and submit data for processing using the POST method, with the server response returned to the client.
PostFormDemonstrates how to connect to an HTTP server and submit form data for processing using the POST method. This example uses the virtual form methods in the control, allowing the application to populate the form fields similar to how the data would be entered in a browser.
QueryIPDemonstrates how to broadcast a UDP datagram to request the IP address assigned to a specific system. This example is designed to be used in conjunction with the ServerIP example running on the target system.
ReadNewsDemonstrates how to connect to news server, download and list newsgroups and articles and post new articles. Note that this example requires access to an NNTP server.
ResolveDemonstrates how to resolve a hostname to an IP address and obtain the servers that are responsible for handling mail for the domain. This example uses the DNS protocol to query a nameserver for A and MX records.
SecureShell1Demonstrates how to connect to an SSH server and execute a remote command, returning the output back to the client application. This can be the starting point for an application that needs to execute remote commands securely.
SecureShell2Demonstrates how to establish an interactive terminal session with an SSH server. This example also uses the ANSI/VT220 terminal emulation control for display and input. This can be the starting point for an application that needs to securely login to a remote server.
SecureShell3Demonstrates how to establish an SFTP connection to an SSH server to upload and download files. This example is similar to the FileTransfer example, modified specifically for connections using SFTP rather than FTP or FTPS.
SecureShell4Demonstrates how to establish an SFTP connection to an SSH server and obtain a list of files. This example is similar to the ListFiles example, modified specifically for connections using SFTP rather than FTP or FTPS.
SendMailDemonstrates connecting to a mail server using SMTP to submit a message for delivery to one or more recipients. This example also demonstrates how to create standard MIME formatted email messages with file attachments.
TelnetDemonstrates how to establish a Telnet connection to a server and implement an interactive client session. The example also uses the terminal emulation component to emulate an ANSI or DEC VT220 terminal.
TextMessageDemonstrates how to send a text message through a service provider SMTP gateway. This example can provide a starting point for applications that need to send SMS notification messages to mobile devices.
TraceRouteDemonstrates how to generate a traceroute from the local host to a remote system. This uses a series of ICMP ECHO datagrams to trace the route that a packet takes to its destination.
UdpClientDemonstrates how to create a UDP socket and send messages to a server. It is used in conjunction with the UdpServer example and can be the basis for an application that needs to send and receive UDP datagrams.
UdpEchoDemonstrates how to create a UDP socket and exchange messages with a remote host. This example requires a server that accepts UDP echo datagrams and returns a copy of the data back to the sender.
UdpServerDemonstrates how to create a UDP socket, wait for incoming messages and respond to the sender. It can be a useful starting point for creating an application that must listen for datagrams. This example is used in conjunction with the UdpClient example.
ViewPageDemonstrates how to connect to an HTTP server and request the contents of a resource from the server, such as an HTML or XML document. It can be used as the starting point for an application that must request documents from a web server.
WebStorageDemonstrates how to open storage containers, upload files to the container and then download the stored objects to the local computer system.
WebTransferDemonstrates how to connect to an HTTP server and upload or download a file. This example also shows how to update a UI progress bar during the transfer by implementing an event handler. It can serve as the starting point for an application that needs to perform file transfers using HTTP.
WhoIsDemonstrates how to connection to and query a WHOIS server for information about the ownership of a domain name. This can include the name of owner, the domain name registrar and related information.
Shopping Cart
Scroll to Top