commit | 68a2ece737df08fa987885c91dccc57fdd3dc927 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Tue Jan 17 13:52:41 2017 +0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Jan 17 05:40:22 2017 -0600 |
tree | 2658e8e729b92b4dc4eba0d0b5969b7033d2c1a5 | |
parent | 9c297af277bdc7f79a593db0060582c92310f980 [diff] |
socket-handler: don't set global O_NONBLOCK flag on client sockets We will want to perform blocking writes in a future change, and setting O_NONBLOCK on the file descriptor makes this difficult. Instead, don't specify O_NONBLOCK, and use send/recv (which allows us to specify MSG_DONTWAIT) instead of write/read. Change-Id: I425b1e4fd37c51e27a9f334dfeff344bb7bc5f97 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.