Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jampajeen/go-async-socket

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jampajeen/go-async-socket

  • v0.0.0-20201102051212-cfe9699571d9
  • Source
  • Go
  • Socket score

Version published
Created
Source

Basic TCP socket server

How to try:

  1. Connect to server by using netcat
nc 127.0.0.1 5555
  1. Client send text to server by enter text on netcat console

  2. Server send text to all clients by enter text on server console

  3. Server send text to specific client by enter this command on server console

_to_ [peer addr] [text]
*** you can find the peer addr on server console ***

ex.

_to_ 127.0.0.1:51358 hello

or cmd pipe

echo "_to_ 127.0.0.1:51358 hello" > cmdpipe
  1. Server close all connections by enter this command on server console
_close_

or pipe

echo "_close_" > cmdpipe

FAQs

Package last updated on 02 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc