🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/jampajeen/go-async-socket

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jampajeen/go-async-socket

v0.0.0-20201102051212-cfe9699571d9
Version published
Created

Basic TCP socket server

How to try:

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

  • Server send text to all clients by enter text on server console

  • 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
  • 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