2017-04-27 12:59:39 +00:00
|
|
|
source ${genode_dir}/repos/libports/run/netty.inc
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
build { test/netty/tcp }
|
2017-04-27 12:59:39 +00:00
|
|
|
|
|
|
|
append config {
|
|
|
|
<start name="netty-server-80">
|
|
|
|
<binary name="test-netty_tcp"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<config ld_verbose="yes" port="80" read_write="no" nonblock="true">
|
|
|
|
<vfs>
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
<dir name="socket"> <fs/> </dir>
|
|
|
|
<dir name="tmp"> <ram/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" socket="/socket"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
<start name="netty-server-8080">
|
|
|
|
<binary name="test-netty_tcp"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<config ld_verbose="yes" mode="server" port="8080" nonblock="false">
|
|
|
|
<vfs>
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
<dir name="socket"> <fs/> </dir>
|
|
|
|
<dir name="tmp"> <ram/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" socket="/socket"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<start name="netty-client-A">
|
|
|
|
<binary name="test-netty_tcp"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<config ld_verbose="yes" mode="client" ip="10.0.2.1" port="8080">
|
|
|
|
<vfs>
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
<dir name="socket"> <fs/> </dir>
|
|
|
|
<dir name="tmp"> <ram/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" socket="/socket"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
<start name="netty-client-B">
|
|
|
|
<binary name="test-netty_tcp"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<config ld_verbose="yes" mode="client" ip="10.0.2.1" port="13002">
|
|
|
|
<vfs>
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
<dir name="socket"> <fs/> </dir>
|
|
|
|
<dir name="tmp"> <ram/> </dir>
|
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" socket="/socket"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
-->
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
install_config $config
|
2019-04-24 13:09:49 +00:00
|
|
|
build_boot_image { test-netty_tcp }
|
2017-04-27 12:59:39 +00:00
|
|
|
run_genode_until forever
|
|
|
|
|
|
|
|
# vi: set ft=tcl :
|