HS Banner
HS Codebank Articles
Page 1 of 2

Use Sockets to send and receive data over TCP 05/07/2023

Description:

When working with System.Net.Sockets, you represent a network endpoint as an IPEndPoint object. The IPEndPoint is constructed with an IPAddress and its corresponding port number. Before you can initiate a conversation through a Socket, you create a data pipe between your app and the remote destination.

Author: Admin
Language: C#
Tags: sockets send receive tcp cs
Read More

Example of .htaccess for PHP 10/06/2021

Description:

A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, used for configuration of website-access issues, such as URL redirection, URL shortening, access control (for different web pages and files), and more. The 'dot' (period or full stop) before the file name makes it a hidden file in Unix-based environments.

Author: Admin
Language: HTTP
Tags: html .htaccess php
Read More

Write Coils Using Modbus 06/12/2021

Description:

Write coils using the FieldTalk Modbus Master Library.

Author: Admin
Language: C#
Tags:
Read More

Read Multiple Coils Using Modbus 06/06/2021

Description:

Read multiple coils using the FieldTalk Modbus Master Library.

Author: Admin
Language: C#
Tags:
Read More

Write Multiple Registers Using Modbus 06/02/2021

Description:

Write multiple registers using the FieldTalk Modbus Master Library.

Author: Admin
Language: C#
Tags:
Read More

Read Multiple Registers Using Modbus 06/01/2021

Description:

Read multiple registers using the FieldTalk Modbus Master Library.

Author: Admin
Language: C#
Tags:
Read More

MS SQL Backup Class 05/08/2021

Description:

Here's a class I wrote to backup an MS SQL database.

Author: B.Henry
Language: Visual Basic .NET
Tags:
Read More

PHP Filesystem Security 04/03/2021

Description:

Anyone learning PHP should read this and the rest of the security section in the PHP manual.

Author: Admin
Language: PHP
Tags:
Read More

TcpClient Class 04/01/2021

Description:

This is a class I've used on a network chat program I built.

Author: Guitarman
Language: C#
Tags:
Read More

SqlConnection Class in C# 03/20/2021

Description:

Represents a connection to a SQL Server database.

Author: b.henry
Language: C#
Tags: cs
Read More

Submit Your Code

If you would like to share your code on HS Codebank you can submit it by registering and clicking the submit article button on this page.
LoginRegisterContact Us

List of Supported Languages
Apache Config
Bash
C
C#
C++
CoffeeScript
CSS
Diff
GO
HTML, XML
HTTP
Java
JavaScript
JSON
Kotlin
Less
Lua
Makefile
Markdown
Nginx Config
NSIS
Objective-C
Perl
PHP
Plain Text
PowerShell
Properties
Python
Python REPL
R
Ruby
Rust
SCSS
Shell Session
SQL
Swift
TOML, also INI
TypeScript
VB Script
Visual Basic .NET
YAML
Request New Language