Merge pull request #28 from rsp/patch-1
Fixed some typos in the readme and the gh-pages website
This commit is contained in:
commit
5a627d57f1
1 changed files with 11 additions and 11 deletions
14
README.md
14
README.md
|
@ -49,7 +49,7 @@ This work is licenced via the [DBAD Public Licence](http://www.dbad-license.org/
|
||||||
|Mac | Unix, TCP, TLS, UDP|
|
|Mac | Unix, TCP, TLS, UDP|
|
||||||
|Win | 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.
|
**Windows** users may want to use UDP servers for the fastest local IPC. Unix Servers are the fastest option on Linux and Mac, but not available for Windows.
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ Set these variables in the ``ipc.config`` scope to overwrite or set default valu
|
||||||
| maxConnections| this is the max number of connections allowed to a socket. It is currently only being set on Unix Sockets. Other Socket types are using the system defaults. |
|
| maxConnections| this is the max number of connections allowed to a socket. It is currently only being set on Unix Sockets. Other Socket types are using the system defaults. |
|
||||||
| retry | this is the time in milliseconds a client will wait before trying to reconnect to a server if the connection is lost. This does not effect UDP sockets since they do not have a client server relationship like Unix Sockets and TCP Sockets. |
|
| retry | this is the time in milliseconds a client will wait before trying to reconnect to a server if the connection is lost. This does not effect UDP sockets since they do not have a client server relationship like Unix Sockets and TCP Sockets. |
|
||||||
| maxRetries | if set, it represents the maximum number of retries after each disconnect before giving up and completely killing a specific connection |
|
| maxRetries | if set, it represents the maximum number of retries after each disconnect before giving up and completely killing a specific connection |
|
||||||
| stopRetrying| Defaults to false mwaning clients will continue to retryt to connect to servers indefinately at the retry interval. If set to any number the client will stop retrying when that number is exceeded after each disconnect. If set to 0, the client will ***NOT*** try to reconnect. |
|
| stopRetrying| Defaults to false meaning clients will continue to retry to connect to servers indefinitely at the retry interval. If set to any number the client will stop retrying when that number is exceeded after each disconnect. If set to 0, the client will ***NOT*** try to reconnect. |
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
@ -96,9 +96,9 @@ These methods are available in the IPC Scope.
|
||||||
|
|
||||||
``ipc.log(a,b,c,d,e...);``
|
``ipc.log(a,b,c,d,e...);``
|
||||||
|
|
||||||
ipc.log will accept any number of arguments and if ``ipc.config.silent`` is not set, it will concat them all with a sincle space ' ' between them and then log them to the console. This is fast because it prevents any concation from happening if the ipc is set to silent. That way if you leave your logging in place it should not effect performance.
|
ipc.log will accept any number of arguments and if ``ipc.config.silent`` is not set, it will concat them all with a sincle space ' ' between them and then log them to the console. This is fast because it prevents any concatenation from happening if the ipc is set to silent. That way if you leave your logging in place it should not effect performance.
|
||||||
|
|
||||||
the log also supports [colors](https://github.com/Marak/colors.js) implementation. All of the available styles are supported and the theme styles are as follows :
|
The log also supports [colors](https://github.com/Marak/colors.js) implementation. All of the available styles are supported and the theme styles are as follows :
|
||||||
|
|
||||||
{
|
{
|
||||||
good : 'green',
|
good : 'green',
|
||||||
|
@ -131,7 +131,7 @@ Used for connecting as a client to local Unix Sockets. ***This is the fastst way
|
||||||
| variable | required | definition |
|
| variable | required | definition |
|
||||||
|----------|----------|------------|
|
|----------|----------|------------|
|
||||||
| id | required | is the string id of the socket being connected to. The socket with this id is added to the ipc.of object when created. |
|
| id | required | is the string id of the socket being connected to. The socket with this id is added to the ipc.of object when created. |
|
||||||
| path | optional | is the path of the Unix Domain Socket File, if not set this will be defaylted to ``ipc.config.socketRoot``+``ipc.config.appspace``+``id`` |
|
| path | optional | is the path of the Unix Domain Socket File, if not set this will default to ``ipc.config.socketRoot``+``ipc.config.appspace``+``id`` |
|
||||||
| callback | optional | this is the function to execute when the socket has been created. |
|
| callback | optional | this is the function to execute when the socket has been created. |
|
||||||
|
|
||||||
**examples** arguments can be ommitted so long as they are still in order.
|
**examples** arguments can be ommitted so long as they are still in order.
|
||||||
|
@ -174,11 +174,11 @@ or explicitly setting the path with callback
|
||||||
|
|
||||||
``ipc.connectToNet(id,host,port,callback)``
|
``ipc.connectToNet(id,host,port,callback)``
|
||||||
|
|
||||||
Used to connect as a client to a TCP or TLS socket via the network card. This can be local or remote, if local, it is recommended that you use the Unix Socket Implementaion of ``connectTo`` instead as it is much faster since it avoids the network card alltogether.
|
Used to connect as a client to a TCP or TLS socket via the network card. This can be local or remote, if local, it is recommended that you use the Unix Socket Implementaion of ``connectTo`` instead as it is much faster since it avoids the network card altogether.
|
||||||
|
|
||||||
| variable | required | definition |
|
| variable | required | definition |
|
||||||
|----------|----------|------------|
|
|----------|----------|------------|
|
||||||
| id | required | is the string id of the socket being connected to. For TCP & TLS sockets, this id is added to the ``ipc.of`` object when the socket is created with a refrence to the socket. |
|
| id | required | is the string id of the socket being connected to. For TCP & TLS sockets, this id is added to the ``ipc.of`` object when the socket is created with a reference to the socket. |
|
||||||
| host | optional | is the host on which the TCP or TLS socket resides. This will default to ``ipc.config.networkHost`` if not specified. |
|
| host | optional | is the host on which the TCP or TLS socket resides. This will default to ``ipc.config.networkHost`` if not specified. |
|
||||||
| port | optional | the port on which the TCP or TLS socket resides. |
|
| port | optional | the port on which the TCP or TLS socket resides. |
|
||||||
| callback | optional | this is the function to execute when the socket has been created. |
|
| callback | optional | this is the function to execute when the socket has been created. |
|
||||||
|
|
Loading…
Reference in a new issue