Comparing version 0.9.16 to 1.0.0
@@ -94,3 +94,3 @@ var net = require('net'), | ||
if(!this.path){ | ||
console.log('Socket Server Path not specified, refusing to start'.warn); | ||
server.log('Socket Server Path not specified, refusing to start'.warn); | ||
return; | ||
@@ -145,2 +145,3 @@ } | ||
function serverCreated(socket) { | ||
server.sockets.push(socket); | ||
@@ -147,0 +148,0 @@ if(socket.setEncoding) |
{ | ||
"name": "node-ipc", | ||
"version": "0.9.16", | ||
"version": "1.0.0", | ||
"description": "A nodejs module for local and remote Inter Process Communication (IPC), Neural Networking, and able to facilitate machine learning.", | ||
@@ -5,0 +5,0 @@ "main": "node-ipc.js", |
@@ -13,3 +13,21 @@ #node-ipc | ||
---- | ||
#### Contents | ||
1. [Types of IPC Sockets and Supporting OS](#types-of-ipc-sockets) | ||
2. [IPC Methods](#ipc-methods) | ||
1. [log](#log) | ||
2. [connectTo](#connectto) | ||
3. [connectToNet](#connecttonet) | ||
4. [disconnect](#disconnect) | ||
5. [serve](#serve) | ||
6. [serveNet](#servenet) | ||
3. [IPC Stores and Default Variables](#ipc-stores-and-default-variables) | ||
4. [Basic Examples](#basic-examples) | ||
1. [Server for Unix Sockets & TCP Sockets](#server-for-unix-sockets--tcp-sockets) | ||
2. [Client for Unix Sockets & TCP Sockets](#client-for-unix-sockets--tcp-sockets) | ||
3. [Server & Client for UDP Sockets](#server--client-for-udp-sockets) | ||
5. [Advanced Examples](https://github.com/RIAEvangelist/node-ipc/tree/master/example) | ||
---- | ||
@@ -308,22 +326,10 @@ #### Types of IPC Sockets | ||
``ipc.of`` | ||
| variable | definition | | ||
|-----------|------------| | ||
| ipc.of | This is where socket connection refrences will be stored when connecting to them as a client via the ``ipc.connectTo`` or ``iupc.connectToNet``. They will be stored based on the ID used to create them, eg : ipc.of.mySocket| | ||
| ipc.server| This is a refrence to the server created by ``ipc.serve`` or ``ipc.serveNet``| | ||
This is where socket connection refrences will be stored when connecting to them as a client via the ``ipc.connectTo`` or ``iupc.connectToNet``. | ||
***example*** | ||
ipc.connectTo( | ||
'world', | ||
function(){ | ||
ipc.of.world.on( | ||
'message', | ||
function(data){...} | ||
); | ||
} | ||
); | ||
---- | ||
### Basic Examples | ||
### Basic Examples | ||
You can find [Advanced Examples](https://github.com/RIAEvangelist/node-ipc/tree/master/example) in the examples folder. In the examples you will find more complex demos including multi client examples. | ||
@@ -330,0 +336,0 @@ #### Server for Unix Sockets & TCP Sockets |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
62680
1293
2
470