Commit Graph

199 Commits

Author SHA1 Message Date
zzz
f778c23f0b SAM: Timeout for first command after HELLO
Better removal of command and opcode from properties
Send error message if no NAME key in LOOKUP
2015-11-30 21:57:55 +00:00
zzz
3c8cc16273 SAM: Use the Destination cache
Comment out some unused methods
SAM client: Add SSL forward support
Handle header line in forwarded stream
Name some threads, number some others
2015-11-30 20:20:55 +00:00
zzz
55f729986b properly set protocol value 2015-11-29 16:23:22 +00:00
zzz
a5a702744f Parser: Allow '=' in values 2015-11-28 23:21:20 +00:00
zzz
1db7613519 one more UTF8 fix 2015-11-28 22:51:00 +00:00
zzz
513e1b9ff8 SAM: Handle UTF-8 in ReadLine (ticket #1488)
Allow forever timeout in ReadLine
Use ReadLine in v1 and v3 handlers
Fix send client closing too fast in v1 stream mode
UTF-8 test and fixes in clients
2015-11-28 21:25:44 +00:00
zzz
dffd441304 SAM: Allow backslash escapes in parser (tickets #1325, #1488)
remove unneeded escape char in other parsers
2015-11-28 18:53:40 +00:00
zzz
87fa1cb1ac SAM: Fix parser to allow spaces in quoted values (tickets #1325, #1488)
Map keys to upper case
Catch some other parse errors
2015-11-28 18:28:15 +00:00
zzz
a03339b120 SAM:
- Use DataHelper to load/store sam.keys
 - Move sam.keys file to config dir (ticket #677)
2015-11-27 22:39:19 +00:00
zzz
9ce8fced02 propagate from branch 'i2p.i2p.zzz.sam' (head b328f0edb961263d7606ea964ecb3f7c319ca1cf)
to branch 'i2p.i2p' (head 7b4c0525be182722ef2cc7b564691f27d997da3b)
2015-11-27 20:58:18 +00:00
zzz
01d23713af test javadoc 2015-11-27 20:49:34 +00:00
zzz
2849aec3c2 Add v3 FORWARD support to sink 2015-11-27 20:34:11 +00:00
zzz
cb979fb685 Allow multiple simultaneous ACCEPT sockets.
Add support for parallel accepts in sink client
2015-11-27 19:39:32 +00:00
zzz
bafec18093 stub out send-with-options 2015-11-27 18:51:59 +00:00
zzz
5adbf9050a Forwarded raw datagrams will include a header line if HEADER=true
Add support for raw with headers to sink client
2015-11-27 18:23:06 +00:00
zzz
3a25a91c33 log tweak 2015-11-27 17:36:42 +00:00
zzz
0519ea476e Add v3 datagram and raw to sink 2015-11-27 17:34:36 +00:00
zzz
48d7f4969c Fix PROTOCOL parsing
Add PROTOCOL test for raw sessions to send client
2015-11-27 16:20:49 +00:00
zzz
9f625a03fb Fix protocol for V3 datagram and raw sessions
Add V3 datagram and raw sessions to send client
minor cleanups
2015-11-27 15:59:42 +00:00
zzz
e77c5bd05c add session options 2015-11-27 13:44:07 +00:00
zzz
31ace20256 auth and ssl support 2015-11-27 00:46:45 +00:00
zzz
4291450f37 make method private
fix timeout message
add client sink pinger
2015-11-26 23:30:18 +00:00
zzz
6373c8a9ed v1 datagram and raw support for sink 2015-11-26 21:39:18 +00:00
zzz
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
zzz
b9ab933550 client getopt 2015-11-26 18:31:17 +00:00
zzz
626f5415c7 add FROM_PORT and TO_PORT to client 2015-11-26 17:00:32 +00:00
zzz
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
zzz
e5f186f61a fix stopping of reader 2015-11-26 15:02:47 +00:00
zzz
807e5bf966 v3 sink working 2015-11-26 14:14:17 +00:00
zzz
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
zzz
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
zzz
13fd613bb8 more client test enhancements 2015-11-25 17:27:37 +00:00
zzz
6934599eed log tweak 2015-11-25 16:48:44 +00:00
zzz
6081856dd1 client demo cleanup 2015-11-25 14:48:43 +00:00
zzz
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
zzz
c7d68c2a6c Require Java 7 for SAM
separate option javac.compilerargs7 for Java 7
2015-11-19 17:48:56 +00:00
zzz
c37cc7ad52 Convert remaining Threads to I2PThread or I2PAppThread 2015-10-31 19:13:57 +00:00
zzz
601376561b add Closeable/Flushable interfaces 2015-08-27 14:36:19 +00:00
zzz
8b14afd605 Add SSLSocketChannel wrappers after review
Requires Java 7 to compile
2015-07-20 14:44:22 +00:00
zzz
1f9bb046f5 Findbugs all over #2
Mostly char encoding
Use StringWriter rather than OSW->BAOS->String
2015-07-12 16:06:49 +00:00
zzz
6e06d326e3 Use ReadLine for SAMHandlerFactory 2015-06-27 20:31:56 +00:00
zzz
072e4dc2bf Add ReadLine with timeouts
Implement PING
Handle QUIT, STOP, EXIT
synch DatagramServer start/stop
2015-06-27 19:46:45 +00:00
zzz
f56ac66d64 Make DatagramServer a Handler, register with bridge 2015-06-27 16:02:15 +00:00
zzz
c662f17823 Move DatagramServer from SAMv3Handler to its own file,
javadocs
more changes to follow
2015-06-27 15:41:19 +00:00
zzz
246b376ed9 tab cleanup 2015-06-27 14:58:29 +00:00
zzz
194f20e18c V3 Stream Session: SSL for STREAM FORWARD
better exception handling
boolean cleanups
2015-06-27 14:31:55 +00:00
zzz
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
zzz
12385f04ec protocol and ports for outgoing datagrams 2015-06-26 23:12:01 +00:00
zzz
49e68bcc86 ports for CONNECT 2015-06-26 21:47:37 +00:00
zzz
b82c1ead72 Add AUTH commands: ENABLE, DISABLE, ADD, REMOVE
Store changes to config file
2015-06-26 21:32:24 +00:00