timer return value fixed (copied from master), socket sndbuff checked before sending, printf removed, wrapper function fixed