Skip to content

Instantly share code, notes, and snippets.

View iiitmahesh's full-sized avatar

Mahesh Karthu iiitmahesh

  • Amotion AI
  • Dubai, UAE
View GitHub Profile
@iiitmahesh
iiitmahesh / nodejs-tcp-example.js
Created March 29, 2017 01:52 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');