common: minor transport changes, transport test fixes.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 28 May 2012 09:35:11 +0000 (12:35 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Mon, 28 May 2012 09:35:11 +0000 (12:35 +0300)
commit8118fdb5f9224c3663411e83df2964201c33ee73
tree303d598be2f776ff0e9622bc3fa67f7fbae14ab2
parentb5e4df1e6a396e4d44c8cb114bb340c29d0cce67
common: minor transport changes, transport test fixes.

Renamed transport events and requests, the generic messaging versions
recv* and send* are now called recvmsg* and sendmsg*. Changed accept
to not take event callbacks for the new accepted transport, instead
the callbacks need to be given to the listening transport and are
inherited from there.

Added basic event callback checks: connection-oriented transports
require connection, close, and recvmsg*. Connectionless transports
require recvfrom*. For connect (usually sender-filtering) to succeed
on a connectionless transports, it needs to have a recv* callback
specified.
src/common/dgram-transport.c
src/common/stream-transport.c
src/common/tests/transport-test.c
src/common/transport.c
src/common/transport.h
src/console-client/client.c
src/plugins/plugin-console.c