All Projects → tallesl → net-Socket

tallesl / net-Socket

Licence: other
A minimalist wrapper around System.Net.Sockets.Socket.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to net-Socket

missive
Fast, lightweight library for encoding and decoding JSON messages over streams.
Stars: ✭ 16 (-23.81%)
Mutual labels:  socket, stream, tcp
EasyFileTransfer
An easy way to transfer file with any size on network with tcp protocol.
Stars: ✭ 30 (+42.86%)
Mutual labels:  socket, tcp, nuget
RRQMSocket
TouchSocket是.Net(包括 C# 、VB.Net、F#)的一个整合性的、超轻量级的网络通信框架。包含了 tcp、udp、ssl、http、websocket、rpc、jsonrpc、webapi、xmlrpc等一系列的通信模块。一键式解决 TCP 黏分包问题,udp大数据包分片组合问题等。使用协议模板,可快速实现「固定包头」、「固定长度」、「区间字符」等一系列的数据报文解析。
Stars: ✭ 286 (+1261.9%)
Mutual labels:  socket, tcp
SpotifyWebApi
A .net core wrapper for the Spotify Web API
Stars: ✭ 19 (-9.52%)
Mutual labels:  wrapper, nuget
Socket
The Hoa\Socket library.
Stars: ✭ 61 (+190.48%)
Mutual labels:  socket, tcp
taxjar.net
Sales Tax API Client for .NET / C#
Stars: ✭ 21 (+0%)
Mutual labels:  nuget, dot-net
LiteNetwork
A simple and fast .NET networking library compatible with .NET Standard 2, .NET 5, 6 and 7.
Stars: ✭ 66 (+214.29%)
Mutual labels:  socket, tcp
KingNetwork
KingNetwork is an open source library to facilitate the creation and communication of clients and servers via TCP, UDP, WebSocket and RUDP sockets.
Stars: ✭ 78 (+271.43%)
Mutual labels:  socket, tcp
MQTTnet
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
Stars: ✭ 3,309 (+15657.14%)
Mutual labels:  tcp, nuget
socket
Dazzle Async Socket
Stars: ✭ 19 (-9.52%)
Mutual labels:  socket, tcp
net-protocol
golang模拟内核协议栈 实现链路层、网络层、传输层、应用层 用户态协议栈 ,基于虚拟网卡TUN/TAP
Stars: ✭ 129 (+514.29%)
Mutual labels:  tcp, ipv4
DzSocket
Delphi Client/Server components to communicate using TCP Socket Asynchronous easily
Stars: ✭ 44 (+109.52%)
Mutual labels:  socket, tcp
GenericProtocol
⚡️ A fast TCP event based buffered server/client protocol for transferring data over the (inter)net in .NET 🌐
Stars: ✭ 38 (+80.95%)
Mutual labels:  socket, tcp
gnb udp over tcp
gnb_udp_over_tcp 是一个为GNB开发的通过tcp链路中转UDP分组转发的服务
Stars: ✭ 32 (+52.38%)
Mutual labels:  socket, tcp
masscanned
Let's be scanned. A low-interaction honeypot focused on network scanners and bots. It integrates very well with IVRE to build a self-hosted alternative to GreyNoise.
Stars: ✭ 50 (+138.1%)
Mutual labels:  tcp, ipv4
AndroidNetMonitor
This project aims to collect and analyze traffic information of Android.(采集手机发送和接收的报文简要信息,并且根据socket记录每个报文对应哪个手机app)
Stars: ✭ 25 (+19.05%)
Mutual labels:  socket, tcp
tcp-net
Build tcp applications in a stable and elegant way
Stars: ✭ 42 (+100%)
Mutual labels:  socket, tcp
workerman
An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols. PHP>=5.4.
Stars: ✭ 10,005 (+47542.86%)
Mutual labels:  socket, tcp
go-eventserver
A socket server which reads events from an event source and forwards them to the user clients when appropriate
Stars: ✭ 18 (-14.29%)
Mutual labels:  socket, tcp
net-EmailAddress
Multiple implementations on email address validation.
Stars: ✭ 12 (-42.86%)
Mutual labels:  nuget, dot-net

logo

Socket

A minimalist wrapper around a .NET's Stream IPv4 TCP Socket. Everything is synchronous.

Disclaimer: I've used this library only on prototypes and small use cases, it never reached production. Even though the code is fairly small, consider that while using it.

Usage

An stupid echo server:

using (var listener = new SocketListener(1337)) // Start listening
{
    for (;;)
    {
        using (var remote = listener.Accept()) // Accepts a connection (blocks execution)
        {
            var data = remote.Receive(); // Receives data (blocks execution)
            remote.Send(data); // Sends the received data back
        }
    }
}

And its client:

using (var socket = new ConnectedSocket("127.0.0.1", 1337)) // Connects to 127.0.0.1 on port 1337
{
    socket.Send("Hello world!"); // Sends some data
    var data = socket.Receive(); // Receives some data back (blocks execution)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].