Skip to content

askovpen/node-fidonet-mailer-binkp

Repository files navigation

node-fidonet-mailer-binkp

Build Status

(npm package version)

this is alpha.

Usage

var BinkPc=require('./');
var path=require('path');
var myinfo={
    'sysop':'Sysop Name',
    'sysname':'new BBS',
    'location':'Russia',
    'nodeinfo':'NDL',
    'address':['2:5020/9696.777','10:10/10.10']
};
var remoteinfo={'2:5020/9696.0': {
    'address':'2:5020/9696.0',
    'password':'supersecretpasswordhuyugadaesh',
    'host':'127.0.0.1'
}};
var files={'2:5020/9696.0': [
    {
        'filename':path.join(__dirname,'/out/test.txt'),
        'size':6,
        'kknd':'^',
        'prio':'c',
        'bundle':null
    },
    {
        'filename':path.join(__dirname,'/out/test2.bin'),
        'size':51200,
        'kknd':'^',
        'prio':'c',
        'bundle':null
    }
]};
var inbound=path.join(__dirname,'/in');

        var options=null;
        var client=BinkPc(myinfo,remoteinfo,files,inbound,0);
        client.on('auth',function(data){
            console.log(data);
        });
        client.start(function(err){
        	console.log('end');
        });

        var server=BinkPc(myinfo,remoteinfo,files,inbound,1);
        server.on('auth',function(data){console.log(data);}
		server.server(24554,function(err){console.log(err);});

About

node-fidonet-mailer-binkp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published