e77c5bd05c
add session options
2015-11-27 13:44:07 +00:00
31ace20256
auth and ssl support
2015-11-27 00:46:45 +00:00
4291450f37
make method private
...
fix timeout message
add client sink pinger
2015-11-26 23:30:18 +00:00
6373c8a9ed
v1 datagram and raw support for sink
2015-11-26 21:39:18 +00:00
bd048b04cc
Fix ReadLine bug that buffered and lost input;
...
can't handle UTF-8 for now.
Start support of datagrams and raw in the client
2015-11-26 20:55:10 +00:00
b9ab933550
client getopt
2015-11-26 18:31:17 +00:00
626f5415c7
add FROM_PORT and TO_PORT to client
2015-11-26 17:00:32 +00:00
9367aca50a
Notes on STREAM STATUS messages when SILENT=true
...
Fix one message for STREAM CONNECT that wasn't honoring SILENT setting
PING failure sends a SESSION STATUS message
Implement ping/pong in client
Delay at end of client send so data gets through in v3 mode
log tweaks
Exception catch tweaks
2015-11-26 16:40:45 +00:00
e5f186f61a
fix stopping of reader
2015-11-26 15:02:47 +00:00
807e5bf966
v3 sink working
2015-11-26 14:14:17 +00:00
868e5e988c
More v3 support
...
Convert IDs from ints to Strings
Wait for STREAM STATUS
Open 2nd socket for sender
v3 sender working
2015-11-25 22:59:41 +00:00
612e01cbbf
More SAM client cleanup and fixes, beginning of v3 support
...
v3 unfinished, does not work yet
2015-11-25 20:46:21 +00:00
13fd613bb8
more client test enhancements
2015-11-25 17:27:37 +00:00
6934599eed
log tweak
2015-11-25 16:48:44 +00:00
6081856dd1
client demo cleanup
2015-11-25 14:48:43 +00:00
110a0a1b7a
Remove singleton SAMv3DatagramServer; hang off of SAMBridge
...
SAMv3DatagramSession whitespace fixes
@since change to 0.9.24
2015-11-23 18:19:17 +00:00
c7d68c2a6c
Require Java 7 for SAM
...
separate option javac.compilerargs7 for Java 7
2015-11-19 17:48:56 +00:00
8b14afd605
Add SSLSocketChannel wrappers after review
...
Requires Java 7 to compile
2015-07-20 14:44:22 +00:00
6e06d326e3
Use ReadLine for SAMHandlerFactory
2015-06-27 20:31:56 +00:00
072e4dc2bf
Add ReadLine with timeouts
...
Implement PING
Handle QUIT, STOP, EXIT
synch DatagramServer start/stop
2015-06-27 19:46:45 +00:00
f56ac66d64
Make DatagramServer a Handler, register with bridge
2015-06-27 16:02:15 +00:00
c662f17823
Move DatagramServer from SAMv3Handler to its own file,
...
javadocs
more changes to follow
2015-06-27 15:41:19 +00:00
246b376ed9
tab cleanup
2015-06-27 14:58:29 +00:00
194f20e18c
V3 Stream Session: SSL for STREAM FORWARD
...
better exception handling
boolean cleanups
2015-06-27 14:31:55 +00:00
9b2d416154
Stub out PING and PONG commands.
...
Handle PING and send PONG. No code for sending PINGs yet.
Don't drop connection if only one token.
2015-06-27 13:15:28 +00:00
12385f04ec
protocol and ports for outgoing datagrams
2015-06-26 23:12:01 +00:00
49e68bcc86
ports for CONNECT
2015-06-26 21:47:37 +00:00
b82c1ead72
Add AUTH commands: ENABLE, DISABLE, ADD, REMOVE
...
Store changes to config file
2015-06-26 21:32:24 +00:00
33672e6a86
Add authorization
...
New PasswordManager methods for use by SAM
2015-06-26 20:24:15 +00:00
876729c24e
Add protocol and port notification
2015-06-26 18:51:03 +00:00
b6cb074c04
Add sam.config file support and -c file option
...
Add partial SSL support (will require Java 7 due to SocketChannel changes)
won't compile, SSLServerSocketChannel and SSLSocketChannel not checked in,
pending decisions on implementation
Bump version to 3.2
2015-06-26 15:40:20 +00:00
5878fae88f
Use getopt for SAM args processing
...
Args processing cleanups
Change default host from 0.0.0.0 to 127.0.0.1
Add -s option for SSL (unimplemented)
Put help text in a single string
2015-06-17 02:22:28 +00:00
233cce8311
remove _args field
2015-06-16 13:59:27 +00:00
b5455cee6e
SAM: Set keepalive on sockets (ticket #1573 )
...
Also on both sides of I2CP.
BOB already does it.
2015-05-12 20:13:17 +00:00
40130a8a61
SAM:
...
- Close sockets and stop tunnels when router-side SAM stops (ticket #1572 )
- Better checks for quoting status message strings (ticket #1488 )
- Set encoding for sam.keys file
- Don't throw NPE on rare stream errors
- Comment out unused dumpProperties()
- Cleanups, log tweaks, thread name tweaks
2015-05-12 19:07:42 +00:00
c1e70ac7d2
SAM: Close datagram or raw session when underlying
...
I2P session closes (ticket #1563 )
2015-05-07 16:04:08 +00:00
dcffde6eeb
Javadoc: missing package.html files in applications (ticket #1109 )
2015-03-22 18:37:40 +00:00
d4bbdc28f3
FloodfillMonitorJob: use the 60 min rate avg instead of lifetime avg, but fallback to the lifetime.
...
SAMStreamSend: fix tabbing from earlier commit.
2015-02-16 17:27:17 +00:00
9163d41228
* I2PSnark, Jetty, SAM, crypto: findbugs resource leaks.
2015-02-10 21:57:27 +00:00
3ef89f49e7
SAM: Fix v3 bug accepting incoming connections
...
It was starting both the v3 and v1 acceptors.
2014-11-22 17:19:40 +00:00
a50afeb5d5
SAM: Fix v3 LS publish, broken in -4 (ticket #1390 )
...
- code cleanup in direction handling
2014-09-30 12:17:56 +00:00
4b074b8dcf
I meant CREATE
...
SAM:
- Don't publish LS for DIRECTION=RECEIVE
- Set default tunnel name
2014-09-26 20:24:53 +00:00
328d7d0008
SAM:
...
- Don't spawn a thread for each transmitted datagram
- Set protocol field for raw and signed datagrams
- Enforce a 60s timeout for HELLO
- Use naming service cache to reduce Destination object churn
- Get Log object from the log manager
- Log spelling fixes
2014-07-22 14:52:08 +00:00
4b0019c732
* SAM: Add support for RAW on the bridge socket in v3 (ticket #1334 )
...
log fixes
2014-07-19 15:43:51 +00:00
fef591412e
SAM: Cherrypick from patch in ticket #1318 :
...
- Add SIGNATURE_TYPE support to GENERATE and CREATE
- Don't NPE checking dest+privkeys
- Simplify HELLO checking
- Don't require two params in HELLO message
- Make MIN parameter optional too
- Version checking fixes
- Bump version to 3.1, only visible if requested
- Cleanups, javadocs
2014-06-28 14:14:39 +00:00
3379432e5f
SAM: Cherrypick from patch in ticket #1318 :
...
- Check for extra bytes in private key string
- checkPrivateDestination() returns boolean instead of throws
2014-06-27 21:05:54 +00:00
bb9129b61b
SAM: Cherrypick from patch in ticket #1318 :
...
- Fix empty properties check
- Overrides
- Statics
2014-06-27 20:53:01 +00:00
0fc3029aaa
SAM:
...
Version handling (ticket #1318 )
- MAX param now optional
- 1-digit versions now accepted for MIN and MAX
- Use VersionComparator for version tests
- Don't require a minor version of 0
- Fix empty properties check
- Overrides
- Prep for version 3.1
Throw exception on null option key (ticket #1325 )
2014-06-27 20:36:34 +00:00
d8c8586ccf
SAM: No synch needed for finals;
...
Move fields to top
2014-06-27 16:53:05 +00:00
38a4728283
SAM: Use SAMHandler.writeString() where possible,
...
Use DataHelper.getASCII() for byte conversion
2014-06-27 16:46:57 +00:00