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.
Example | Description |
---|---|
AsyncSocket | Demonstrates the use of an asynchronous socket to establish a non-blocking connection with a server and exchange data by responding to event notifications. |
ChatClient | Demonstrates 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. |
ChatServer | Demonstrates a simple chat server application that accepts connections from the ChatClient example and allows multiple clients to exchange messages with one another. |
CheckMail | Connects to a mail server using the POP3 protocol, lists and views the email messages stored in the user's inbox. |
Dialer | Uses Remote Access Services to establish a dialup networking connection to an Internet service provider. |
EchoClient | Demonstrates 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. |
EchoServer | Demonstrates 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. |
Encode | Demonstrates 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. |
Encrypt | Demonstrates 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. |
Execute | Demonstrates 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. |
FileTransfer | Demonstrates 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. |
FtpServer | Demonstrates 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. |
HttpServer | Demonstrates 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. |
ListFiles | Demonstrates 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). |
ListMail | Demonstrates 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. |
Location | Demonstrates how to use the GeoIP location service API to obtain information about the physical location of the local computer system. |
Login | Demonstrates 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. |
MathServer | Demonstrates 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. |
NetTime | Demonstrates 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. |
Ping | Demonstrates 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. |
PostData | Demonstrates how to connect to an HTTP server and submit data for processing using the POST method, with the server response returned to the client. |
PostForm | Demonstrates 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. |
QueryIP | Demonstrates 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. |
ReadNews | Demonstrates 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. |
Resolve | Demonstrates 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. |
SecureShell1 | Demonstrates 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. |
SecureShell2 | Demonstrates 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. |
SecureShell3 | Demonstrates 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. |
SecureShell4 | Demonstrates 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. |
SendMail | Demonstrates 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. |
Telnet | Demonstrates 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. |
TextMessage | Demonstrates 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. |
TraceRoute | Demonstrates 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. |
UdpClient | Demonstrates 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. |
UdpEcho | Demonstrates 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. |
UdpServer | Demonstrates 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. |
ViewPage | Demonstrates 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. |
WebStorage | Demonstrates how to open storage containers, upload files to the container and then download the stored objects to the local computer system. |
WebTransfer | Demonstrates 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. |
WhoIs | Demonstrates 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. |