npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

socket-tcp

v1.0.1

Published

Socket Io Sender and Reviver!

Downloads

4

Readme

Socket IO TCP

Socket Io Sender and Reviver!

Install

sudo apt install nodejs git # install nodejs and git
cd <you programmes path> # you can also go to ~/Desktop
git clone [email protected]:LFF5644/socketTCP.git # download all file form github and paste this files in "./socketTCP"
cd socketTCP/
# start here if you alrady have this repo on you device
npm install # download all required modules in the package.json file

Tipp

for exit press STRG + C (^C)

Start Server

WARNING: erveryone has accses to all you files!

cd <path to socketTCP>
cd server/
export socketTCP_port="<port>" # default is "3245"
export socketTCP_chunkSize="<chunk size>" # in bytes, default is "1048576" (1MB), example "1024" (1KB)
node index.js # run server

Start Client

cd <path to socketTCP>
cd client/
export socketTCP_host="<server ip>" # server ip, default "localhost"
export socketTCP_get="<file>" # file to get from server, example "~/Desktop/test.txt"
export socketTCP_output="<output file>" # default "outputFile.bin"
node demo.js # run client

Update to newest Version

cd <path to socketTCP>
git pull

if newest version you get Already up to date.! else look Example: Update

Example: Installation

lff@lff-raspberrypi:~$ cd /tmp/
lff@lff-raspberrypi:/tmp$ git clone [email protected]:LFF5644/socketTCP.git
[...]
lff@lff-raspberrypi:/tmp$ cd socketTCP/
lff@lff-raspberrypi:/tmp/socketTCP$ npm install
[...]
lff@lff-raspberrypi:/tmp/socketTCP$

Example: Server

lff@lff-raspberrypi:/tmp/socketTCP$ cd server/
lff@lff-raspberrypi:/tmp/socketTCP/server$ export socketTCP_chunkSize="0xff"
lff@lff-raspberrypi:/tmp/socketTCP/server$ node index.js
Socket Server ist Online auf Port 3245!
Chunk Größe beträgt 255 Bytes!

sending file "/home/lff/test.txt" size 41 bytes to client "-CLxZsB7ubnBgf8bAAAD"...
Datei: "/home/lff/test.txt" with size 41 Bytes. Wurde übertragen in 0.09 Sekunden, 0 Minuten
^C
lff@lff-raspberrypi:/tmp/socketTCP/server$

Example: Client

lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP$ cd client/
lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP/client$ export socketTCP_host="192.168.178.55"
lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP/client$ export socketTCP_get="/home/lff/test.txt"
lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP/client$ export socketTCP_output="helloWorld.txt"
lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP/client$ node demo.js
connecting to 192.168.178.55 with port 3245
connected as -CLxZsB7ubnBgf8bAAAD
get file /home/lff/test.txt
test.txt Add Chunk: 00-41 Chunk Address, 00/41 Bytes, 41 Chunk Größe Bytes
Datei empfangen! wird nun unter "helloWorld.txt" gespeichert Größe beträgt 41 Bytes
^C
lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP/client$ cat helloWorld.txt 
Hello, World!
Im a test file!

have fun!
lff@LFF-Server:~/bind/myOwnProgrammes/nodejs/socketTCP/client$

Example: Update

lff@lff-raspberrypi:/tmp/socketTCP$ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), 1.64 KiB | 52.00 KiB/s, done.
From github.com:LFF5644/socketTCP
   ec14db4..a96c4c9  master     -> origin/master
Updating ec14db4..a96c4c9
Fast-forward
 README.md | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
lff@lff-raspberrypi:/tmp/socketTCP$