commit | 5708dfb2f132c972df8f0b650101a8953008441e | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Thu Jan 19 15:11:19 2017 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Thu Jan 19 16:41:55 2017 +0800 |
tree | c4f0c10b4a1116220e7182c0b53872812a8cc219 | |
parent | 848fc877ea1c7ab1aa5ff796384043950ae379d9 [diff] |
socket-handler: Use a global backlog buffer instead of per-client Currently, we keep a backlog buffer for each connected client. This is a waste, as it's storing the same data, just at different offsets. This change uses a global buffer for the client backlog, with each client tracking its current position in this buffer. We just make this fixed-size, rather than trying to dynamically allocate. Change-Id: I20bd0772c95d8237677108c7a62d9ec6ff8ed35d Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Note: In addition to a toolchain and autoconf tools, this requires autotools-archive
to be installed.
To build this project, run the following shell commands:
./bootstrap.sh ./configure ${CONFIGURE_FLAGS} make
To fully clean the repository, run:
./bootstrap.sh clean
Running the server requires a serial port (e.g. /dev/ttyS0):
touch obmc-console.conf ./obmc-console-server --config obmc-console.conf ttyS0
To connect to the server, simply run the client:
./obmc-console-client
To disconnect the client, use the standard ~.
combination.