mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 20:18:25 +02:00
ENiGMA 1/2 WILL USE SPACES FROM THIS POINT ON VS TABS
* Really just to make GitHub formatting happy. Arg.
This commit is contained in:
parent
5ddf04c882
commit
e9787cee3e
135 changed files with 27397 additions and 27397 deletions
|
@ -8,29 +8,29 @@ var _ = require('lodash');
|
|||
module.exports = MailPacket;
|
||||
|
||||
function MailPacket(options) {
|
||||
events.EventEmitter.call(this);
|
||||
events.EventEmitter.call(this);
|
||||
|
||||
// map of network name -> address obj ( { zone, net, node, point, domain } )
|
||||
this.nodeAddresses = options.nodeAddresses || {};
|
||||
// map of network name -> address obj ( { zone, net, node, point, domain } )
|
||||
this.nodeAddresses = options.nodeAddresses || {};
|
||||
}
|
||||
|
||||
require('util').inherits(MailPacket, events.EventEmitter);
|
||||
|
||||
MailPacket.prototype.read = function(options) {
|
||||
//
|
||||
// options.packetPath | opts.packetBuffer: supplies a path-to-file
|
||||
// or a buffer containing packet data
|
||||
//
|
||||
// emits 'message' event per message read
|
||||
//
|
||||
assert(_.isString(options.packetPath) || Buffer.isBuffer(options.packetBuffer));
|
||||
//
|
||||
// options.packetPath | opts.packetBuffer: supplies a path-to-file
|
||||
// or a buffer containing packet data
|
||||
//
|
||||
// emits 'message' event per message read
|
||||
//
|
||||
assert(_.isString(options.packetPath) || Buffer.isBuffer(options.packetBuffer));
|
||||
};
|
||||
|
||||
MailPacket.prototype.write = function(options) {
|
||||
//
|
||||
// options.messages[]: array of message(s) to create packets from
|
||||
//
|
||||
// emits 'packet' event per packet constructed
|
||||
//
|
||||
assert(_.isArray(options.messages));
|
||||
//
|
||||
// options.messages[]: array of message(s) to create packets from
|
||||
//
|
||||
// emits 'packet' event per packet constructed
|
||||
//
|
||||
assert(_.isArray(options.messages));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue