// =============================================================================
public AppSnd(DNPUser user) throws Exception {
this.user = user;
appSndBuffer = new Buffer(M);
appSndQueue = new Queue();
conAppSndBuffer = new Buffer(S);
conAppSndQueue = new Queue();
appSndLock = new Lock();
conAppSndLock = new Lock(UNLOCKED);
frameRcv = new Buffer(M);
previousFrameSnd = new Buffer(M);