Marco Castelluccio
528d259997
Use Int8Array instead of Uint8Array throughout the codebase
2015-02-03 01:56:53 +01:00
Marco Castelluccio
6162a6d10e
Don't copy the received data in a new array unless needed
2015-01-27 15:44:15 +01:00
Marco Castelluccio
2111f8db2c
Don't create a new array when reading socket data
2015-01-27 13:20:07 +01:00
Marcus Cavanaugh
57437e0ebf
Remove createAlternateImpl.
2014-12-18 18:41:24 -06:00
Marcus Cavanaugh
c685415529
Convert JavaExceptions into plain exceptions.
2014-12-18 18:41:07 -06:00
Marcus Cavanaugh
2a9a511fa2
Fix socket closing race.
2014-12-12 15:30:22 -06:00
Marco Castelluccio
7513b53479
Cleanup in this.socket.ondata
2014-11-24 02:29:37 +01:00
Marco Castelluccio
a875b3ac0f
Use postMessage to communicate from parent to child. Fixes #532
2014-11-24 02:19:26 +01:00
Eric Rahm
c64a188b39
Improve perf of createAlternanteImpl
...
- Creates return-type specific return functions that are determined at
creation time.
- Splits off promise handling to it's own function. Overrides that use promises
must indicate so when creating the override with the usesPromise param.
- Updates overrides that use promises
2014-11-03 17:47:51 -08:00
Marco Castelluccio
820f2ef5da
Pass ctx as last optional parameter. Fixes #485 .
2014-10-27 12:37:53 +01:00
Pin Zhang
a52cbb08df
Allow reading if there is data left in the buffer event socket is closed
...
Also fixed the bug when writing to a closed socket.
2014-10-25 00:13:48 +08:00
Myk Melez
054d683ced
clean up logging and error reporting
2014-10-22 16:32:32 -07:00
Myk Melez
5915d0510f
work-in-progress impl of SSL stream test
2014-10-21 17:02:04 -07:00
Marco Castelluccio
3d3364154a
Temp fix for socket tests
2014-10-17 01:16:13 -07:00
Marco Castelluccio
aa0dd634ce
Add missing binds
2014-10-16 23:47:09 -07:00
Marco Castelluccio
b910b87bdf
Use Native.create for async natives
2014-10-16 15:04:31 -07:00
Marco Castelluccio
4da7d6755d
Port other midp/socket.js natives to Native.create
2014-10-16 10:42:53 -07:00
Myk Melez
3926f02369
only send to the parent the data being sent to the TCP socket
2014-10-15 15:04:50 -07:00
Myk Melez
d6dfc59cca
close pipes after we're done using them
2014-10-15 01:12:15 -07:00
Myk Melez
056beb7e65
improve terminology
2014-10-15 00:10:59 -07:00
Myk Melez
669aac8ed7
no need to wrap pipe call in another timeout
2014-10-14 23:11:17 -07:00
Myk Melez
322253888c
simplify message handler
2014-10-14 23:09:35 -07:00
Myk Melez
643bc5821a
Merge branch 'master' into allow-scripts
...
Conflicts:
midp/socket.js
tests/automation.js
2014-10-14 22:38:28 -07:00
Marco Castelluccio
0621b9f5c4
Misc porting of natives to Native.create
2014-10-14 14:51:40 -07:00
Myk Melez
b2a623c71a
avoid copying data unnecessarily
2014-10-14 14:46:47 -07:00
Myk Melez
dd8ab00d11
restart Protocol.write0 thread immediately on socket send
2014-10-14 13:23:02 -07:00
Myk Melez
a1df1489d0
test for socket.isClosed correctly in read0
2014-10-13 15:33:07 -07:00
Myk Melez
df7e614d9f
use mozbrowser to enable privileges, local loading, and code evaluation
2014-10-12 22:36:22 -07:00
Brendan Dahl
8385651ce0
Various fixes for chrome.
2014-09-30 09:17:16 -07:00
Myk Melez
d782fd9700
return -1 early when Protocol.read0 called on closed socket
2014-09-29 16:44:27 -07:00
Myk Melez
628ee73698
replace impls with conditional warnings for now
2014-09-04 17:55:59 -07:00
Myk Melez
fedd5563d1
ensure buffered output gets written before returning from notifyClosedOutput
2014-09-04 17:29:21 -07:00
Myk Melez
af8378c924
clarify comment; remove warning; add semi-colon
2014-09-04 16:59:04 -07:00
Myk Melez
1e03a8d767
Merge branch 'master' into socket-natives
2014-09-04 16:51:03 -07:00
Myk Melez
9f760147a2
close socket asynchronously
2014-09-04 16:14:31 -07:00
Myk Melez
9690243d4c
implement notifyClosedInput0 and notifyClosedOutput0; comment shutdownOutput0
2014-09-04 15:16:55 -07:00
Marco Castelluccio
53a5840829
use strict
2014-08-28 14:13:45 -07:00
Marco Castelluccio
03570dad19
Add Graphics.getPixel back in midp/midp.js to avoid rendering problems
2014-08-28 14:11:40 -07:00
Marco Castelluccio
2a56035843
Split midp.js in several files. Fixes #150 .
2014-08-28 14:04:46 -07:00