SocketTools .NET Development
Development Information
The SocketTools .NET Edition classes allow you to quickly integrate Internet functionality into your applications, using the development tools and programming languages of your choice. The .NET edition includes detailed technical documentation and examples, along with free technical support for developers and evaluators.
You can request an experienced software architect provide your company with a free quote and consultation for a project that uses SocketTools. This can include developing a specific desktop or server application, or a custom modification to a SocketTools component.
» Request a custom development quote online
Supported Languages
The SocketTools .NET classes are managed code assemblies that can be used with Visual Basic .NET, C# and C++, as well as a variety of other .NET programming languages. SocketTools can also be used with .NET based scripting languages, such as PowerShell.
The following code example shows how the SocketTools.FtpClient class could be used to upload a file to a server using the SFTP (SSH) protocol:
// Create an instance of the FtpClient class SocketTools.FtpClient ftpClient = new SocketTools.FtpClient(); ftpClient.HostName = editHostName.Text; ftpClient.RemotePort = SocketTools.FtpClient.ftpPortSSH; ftpClient.UserName = editUserName.Text; ftpClient.Password = editPassword.Text; // Connect to the server and authenticate the user if (ftpClient.Connect()) { // Upload the local file to the server if (ftpClient.PutFile(editLocalFile.Text, editRemoteFile.Text)) { MessageBox.Show("The file was uploaded successfully"); } // Disconnect from the server when the transfer completes ftpClient.Disconnect(); } else { MessageBox.Show(ftpClient.LastErrorString); return; }
// Create an instance of the FtpClient class SocketTools::FtpClient^ ftpClient = (gcnew SocketTools::FtpClient()); ftpClient->HostName = editHostName->Text; ftpClient->RemotePort = SocketTools::FtpClient::ftpPortSSH; ftpClient->UserName = editUserName->Text; ftpClient->Password = editPassword->Text; // Connect to the server and authenticate the user if (ftpClient->Connect()) { // Upload the local file to the server if (ftpClient->PutFile(editLocalFile->Text, editRemoteFile->Text)) { MessageBox::Show("The file was uploaded successfully"); } // Disconnect from the server when the transfer completes ftpClient->Disconnect(); } else { MessageBox::Show(ftpClient->LastErrorString); }
' Create an instance of the FtpClient class Dim ftpClient As New SocketTools.FtpClient ftpClient.HostName = editHostName.Text ftpClient.RemotePort = SocketTools.FtpClient.ftpPortSSH ftpClient.UserName = editUserName.Text ftpClient.Password = editPassword.Text ' Connect to the server and authenticate the user If ftpClient.Connect() Then ' Upload the local file to the server If ftpClient.PutFile(editLocalFile.Text, editRemoteFile.Text) Then MsgBox("The file was uploaded successfully") End If ' Disconnect from the server when the transfer completes ftpClient.Disconnect() Else MsgBox(ftpClient.LastErrorString) End If
SocketTools .NET includes components that support version 4.0 through version 8.0 of the .NET Framework and are compatible with all versions of Visual Studio from Visual Studio 2010 through to the current release, Visual Studio 2022. You can select which version of the assemblies that you wish to use, choosing version 4.0 or 4.5 for backwards compatibility with earlier versions of Visual Studio, or choose .NET 6.0 which is the current long-term service (LTS) version of the framework.
Development Tools
Supported development tools are Microsoft Visual Studio, as well as The Visual Studio Community versions and Embarcadero RAD Studio. Other third-party IDEs and .NET languages that fully support the Common Language Infrastructure (CLI) on the Windows platform can also use the SocketTools .NET Edition components.
The SocketTools classes can be used to create desktop GUI applications, Windows services and console applications, on either desktop or server systems. Projects can target both the x86 (32-bit) and x64 (64-bit) platforms, and SocketTools also includes Windows Installer packages that you can use with your installation to simplify deployment.
Supported Platforms
On the desktop, SocketTools supports Windows 7 SP1 and later platforms, including the latest builds of Windows 11. On the Windows server platforms, SocketTools is supported on Windows Server 2008 R2 and later versions, including Windows Server 2022. Both 32-bit and 64-bit versions of Windows are supported.
Windows XP and Windows Vista are no longer supported platforms. SocketTools 11 uses APIs which require Windows 7 as a minimum. Due to a number of internal security-related changes, the assemblies cannot be loaded on these older, unsupported versions of Windows.