propagate from branch 'i2p.i2p' (head 81ec1b16687e7276a752db7f600a525a6e289458)
to branch 'i2p.i2p.sam3' (head bf43c21d57d97df61e863a41783aaae968381d00)
This commit is contained in:
@ -42,8 +42,9 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
|
||||
protected SAMRawSession rawSession = null;
|
||||
protected SAMDatagramSession datagramSession = null;
|
||||
protected SAMStreamSession streamSession = null;
|
||||
protected SAMDatagramSession getDatagramSession() {return datagramSession ;}
|
||||
protected SAMRawSession getRawSession() {return rawSession ;}
|
||||
protected SAMDatagramSession getDatagramSession() {return datagramSession ;}
|
||||
protected SAMStreamSession getStreamSession() {return streamSession ;}
|
||||
|
||||
protected long _id;
|
||||
protected static volatile long __id = 0;
|
||||
@ -331,8 +332,8 @@ public class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatag
|
||||
if (name.equals("ME")) {
|
||||
if (getRawSession() != null) {
|
||||
dest = getRawSession().getDestination();
|
||||
} else if (streamSession != null) {
|
||||
dest = streamSession.getDestination();
|
||||
} else if (getStreamSession() != null) {
|
||||
dest = getStreamSession().getDestination();
|
||||
} else if (getDatagramSession() != null) {
|
||||
dest = getDatagramSession().getDestination();
|
||||
} else {
|
||||
|
@ -44,17 +44,19 @@ public class SAMv3Handler extends SAMv1Handler
|
||||
{
|
||||
private final static Log _log = new Log ( SAMv3Handler.class );
|
||||
|
||||
protected SAMv3StreamSession streamSession = null ;
|
||||
protected SAMv3RawSession rawSession = null ;
|
||||
protected SAMv3DatagramSession datagramSession = null ;
|
||||
|
||||
protected SAMDatagramSession getDatagramSession() {
|
||||
return datagramSession ;
|
||||
}
|
||||
protected SAMv3StreamSession streamSession = null ;
|
||||
|
||||
protected SAMRawSession getRawSession() {
|
||||
return rawSession ;
|
||||
}
|
||||
protected SAMDatagramSession getDatagramSession() {
|
||||
return datagramSession ;
|
||||
}
|
||||
protected SAMStreamSession getStreamSession() {
|
||||
return streamSession ;
|
||||
}
|
||||
|
||||
protected Session session = null ;
|
||||
|
||||
|
Reference in New Issue
Block a user