Mr. Pepe
Mr. Pepe provide protocol to work with remote object over UDP.
How to create Mr. Pepe server?
const mrPepe = ;const crypto = ; var localObject = { return crypto; } { return a+b; }; var server = address: '127.0.0.1' port: 3301 protocol: 'udp4' child: 4 localObject; serverstart;
This source code create a service binding to port 3301 with 4 child process. All method of localObject
will be provide as res API. Of couse Mr. Pepe support UDP/IPv4 and UDP/IPv6.
How to create Mr. Pepe client?
const mrPepe = ; var client = address: '127.0.0.1' port: 3301 protocol: 'udp4'; client; client;
This source code create UDP datagram connect to server following configuration. It'll trigger localObject
over UPD.
Future works
- Support callback function
- Parsing parameters in
Buffer
type - Encrypt transfer data
License
This software distributed under MIT License