struct statmsg { struct Message msg; long count; int direction; };