updated basic example to reflect Walters bug catch
This commit is contained in:
parent
ab1244a3c9
commit
8b00e68962
1 changed files with 4 additions and 13 deletions
17
README.md
17
README.md
|
@ -1,5 +1,5 @@
|
|||
#node-ipc
|
||||
*a nodejs module for local and remote Inter Process Communication* for Linux, Mac and Windows.
|
||||
*a nodejs module for local and remote Inter Process Communication*
|
||||
|
||||
**npm install node-ipc**
|
||||
|
||||
|
@ -10,19 +10,10 @@
|
|||
|
||||
| Type | Definition |
|
||||
|-----------|------------|
|
||||
|Unix Socket| Gives Linux and Mac lightning fast communication and avoids the network card to reduce overhead and latency. [Local Unix Socket examples ](https://github.com/RIAEvangelist/node-ipc/tree/master/example/unixSocket/ "Unix Socket Node IPC examples") |
|
||||
|Unix Socket| Gives lightning fast communication and avoids the network card to reduce overhead and latency. [Local Unix Socket examples ](https://github.com/RIAEvangelist/node-ipc/tree/master/example/unixSocket/ "Unix Socket Node IPC examples") |
|
||||
|TCP Socket | Gives the most reliable communication across the network. Can be used for local IPC as well, but is slower than #1's Unix Socket Implementation because TCP sockets go through the network card while Unix Sockets do not. [Local or remote network TCP Socket examples ](https://github.com/RIAEvangelist/node-ipc/tree/master/example/TCPSocket/ "TCP Socket Node IPC examples") |
|
||||
|TLS Socket | ***coming soon...*** |
|
||||
|UDP Sockets| Gives the **fastest network communication**. UDP is less reliable but much faster than TCP. It is best used for streaming non critical data like sound, video, or multiplayer game data as it can drop packets depending on network connectivity and other factors. UDP can be used for local IPC as well, but is slower than #1's Unix Socket Implementation because UDP sockets go through the network card while Unix Sockets do not. [Local or remote network UDP Socket examples ](https://github.com/RIAEvangelist/node-ipc/tree/master/example/UDPSocket/ "UDP Socket Node IPC examples") |
|
||||
|
||||
| OS | Supported Sockets |
|
||||
|-----|--------------------|
|
||||
|Linux| Unix, TCP, TLS, UDP|
|
||||
|Mac | Unix, TCP, TLS, UDP|
|
||||
|Win | TCP, TLS, UDP |
|
||||
|
||||
**Windows** users may want to use UDP servers for the fastest local IPC. Unix Servers are the fastest oprion on Linux and Mac, but not available for windows.
|
||||
|
||||
|UDP Sockets| Gives the **fastest network communication**. UDP is less reliable but much faster than TCP. It is best used for streaming non critical data like sound, video, or multiplayer game data as it can drop packets depending on network connectivity and other factors. UDP can be used for local IPC as well, but is slower than #1's Unix Socket Implementation because UDP sockets go through the network card while Unix Sockets do not. [Local or remote network UDP Socket examples ](https://github.com/RIAEvangelist/node-ipc/tree/master/example/UDPSocket/ "UDP Socket Node IPC examples") |
|
||||
|
||||
----
|
||||
### IPC Default Variables
|
||||
|
@ -241,7 +232,7 @@ The server is the process keeping a socket for IPC open. Multiple sockets can co
|
|||
'message',
|
||||
function(data,socket){
|
||||
ipc.log('got a message : '.debug, data);
|
||||
socket.emit(
|
||||
ipc.server.emit(
|
||||
'message',
|
||||
data+' world!'
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue