Skip to content

Instantly share code, notes, and snippets.

@AvianFlu AvianFlu/bnc.js
Created Aug 14, 2011

Embed
What would you like to do?
The littlest BNC that could
//
// The best BNC ever, (c) 2011 AvianFlu
// Released under MIT License
//
var net = require('net');
var bncServer = net.createServer(onConnect);
bncServer.listen(6969, process.argv[2] || 'localhost');
function onConnect(userStream) {
var serverStream = net.createConnection(6697, 'chat.us.freenode.net');
userStream.pipe(serverStream);
serverStream.pipe(userStream);
}
@Amorelandra

This comment has been minimized.

Copy link

Amorelandra commented Aug 15, 2011

THE BEST THE BEST THE BEST

@AvianFlu

This comment has been minimized.

Copy link
Owner Author

AvianFlu commented Aug 15, 2011

NOW WITH SSL SUPPORT LOL!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.