
cwshare.cfg some new things i added
====================================



IMPORTANT !!!

About D line in cwshare.cfg file ...
Now you can set what provids boxids you want to reshare with another peer(s)

This is standard D line 
=======================
D: { IP { port1 port2 { pass { level1 level2 }}}} 


This is my new upgraded D line
===============================
D: { IP { port1 port2 { pass { level1 level2 }}}} 
{ 0000 } { 0 }   send filter 
{ 0000 } { 0 }   receive filter


D: { IP { port1 port2 { pass { level1 level2 }}}} 
{ xxyy !!in hex!!!} { provid-boxid-boxid;provid;provid-boxid; ...!!in hex!!!}    send filter  
{ xxyy !!in hex!!!} { provid-boxid-boxid;provid;provid-boxid; ...!!in hex!!!}    receive filter 

for both brascets

xx -> 00 disabled 
xx -> 01 allow only this cards for provid to be reshared received 
xx -> 02 denied only this cards for provid to be reshared received

yy -> how much provids is in next brascet dont caculate boxids

1st example:
============

D: { IP { port1 port2 { pass { level1 level2 }}}} 
{ 0102 } { 0001006A;0001006C-0A0A-0B0B; } 
{ 0102 } { 00010080;00010081-0A0A-0B0B; }

  
   
{ 0102 } { 0001006A;0001006C-0A0A-0B0B; } 

xx is 01 ,ALL cards for (0001006A) provid is SENT to peer AND cards with boxid 0A0A,0B0B for provid 0001006C, ALL others provids(cards) will NOT be sent!!

yy is 02 ,there is only 2 provids in next bracket dont caculate boxids
  
   
{ 0102 } { 00010080;00010081-0A0A-0B0B; }
xx is 01 ,ALL cards for (00010080) provid is RECEIVED from peer AND cards with boxid 0A0A,0B0B for provid 00010081, ALL others provids will be IGNORED!!

yy is 02 ,there is only 2 provids in next bracket dont caculate boxids
  


2nd example:
============

D: { IP { port1 port2 { pass { level1 level2 }}}} 
{ 0202 } { 0001006A;0001006C-0A0A-0B0B; } 
{ 0202 } { 00010080;00010081-0A0A-0B0B; }
  

{ 0202 } { 0001006A;0001006C-0A0A-0B0B; } 
xx is 02 ,ALL cards for this (0001006A) provid is NOT sent to peer AND cards with boxid 0A0A,0B0B for provid 0001006C, ALL others provids(cards) are !! 

yy is 02 ,there is only 2 provids in next bracket dont caculate boxids
   
  
{ 0202 } { 00010080;00010081-0A0A-0B0B; }
xx is 02 ,ALL cards for (00010080) provid is NOT RECEIVED from peer AND cards with boxid 0A0A,0B0B for provid 00010081, all others provids will be received!!

yy is 02 ,there is only 2 provids in next bracket dont caculate boxids
  
  

  
NOTICE: MBOX WILL NOT COMPLAIN IF YOU USE OLD D LINE STYLE !!!!!!!!!!!!!





Working with TCP protocol
=========================

Just rename D with TCP,example 
TCP0: { IP { port1 port2 { pass { level1 level2 }}}} 
TCP1: { IP { port1 port2 { pass { level1 level2 }}}} 
 or my upgraded D line
  
TCP0: { IP { port1 port2 { pass { level1 level2 }}}} 
TCP1: { IP { port1 port2 { pass { level1 level2 }}}} 
{ xxyy !!in hex!!!} { provid-boxid-boxid;provid;provid-boxid; ...!!in hex!!!} 
{ xxyy !!in hex!!!} { provid-boxid-boxid;provid;provid-boxid; ...!!in hex!!!}
  
IMPORTANT: NOT YET INPLEMENTED !!!





Connecting to newcamd server program Newcs 
==========================================
    
example:
C: { server_ip server_listening_port username password des_key } { x } { xxxxyyyy:xxxxyyyy;......} { xxxx:xxxx:xxxx:.......} 
C: { 127.0.0.1 15000 dummy dummy 01 02 03 04 05 06 07 08 09 10 11 12 13 14 } { 10 } { 0100006a:0100006B;} { 1420:A200:B302:}

[second brascet] -> { x }  max. number ecms in buffer

[third brascet] { 0100006a:0100006B;} is used if you want to change caidprovid from what newcs detected to caidprovid to use with gboxx protocol so 0100006A will be 0100006B in gboxx protocol
    
[last brascet] -> forbiden SID pids 

