New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

udt4

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

udt4

A node.js UDT binding for FAST data transfers

latest
npmnpm
Version
0.1.1
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source

udt4

This is a wrapper around the UDT4 library.

See http://en.wikipedia.org/wiki/UDP-based_Data_Transfer_Protocol

This library is intentionally marked as 0.1.0 and should be considered alpha

usage

server

udt4.createServer(function (data) {
   console.log(data);
}).listen(1337);

client

var udt4 = require('../udt4');

var clt = udt4.createClient(1337, '127.0.0.1');
clt.write('data\n');
clt.end();

api

udt4.createServer([dataListener])

Returns a new server object.

The dataListener is a function which is automatically added to the 'data' event.

server.listen(port)

Begin accepting connections on the specified port. As the hostname is currently omitted, the server will accept connections directed to any IPv4 address (INADDR_ANY).

server.close()

Stops the server from accepting new connections and keeps existing connections. This function is asynchronous, the server is finally closed when all connections are ended and the server emits a 'close' event.

udt4.createClient()

Constructs a new UDT4 client. port and host refer to the server to be connected to.

client.connect(port, [host])

Opens a connection to the server

client.write(data)

Sends data to the server.

client.end()

Closes the connection to the server.

contributors

Anton WhalleyGitLab/No9Twitter/@dhigit9

Keywords

udt

FAQs

Package last updated on 14 Nov 2014

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