sendmessage.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*====================================================================*
  2. *
  3. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  4. *
  5. * All rights reserved.
  6. *
  7. *====================================================================*/
  8. /*====================================================================*
  9. *
  10. * ssize_t sendmessage (struct channel const * channel, struct message * message, ssize_t length);
  11. *
  12. * plc.h
  13. *
  14. * send management message over Ethernet in a platform independent
  15. * fashion; return the number of bytes sent on succes, 0 on timeout
  16. * or -1 on error;
  17. *
  18. * see readmessage for the vendor specific read counterpart to this
  19. * function;
  20. *
  21. * Contributor(s):
  22. * Charles Maier <cmaier@qca.qualcomm.com>
  23. * Nathaniel Houghton <nhoughto@qca.qualcomm.com>
  24. *
  25. *--------------------------------------------------------------------*/
  26. #ifndef SENDMESSAGE_SOURCE
  27. #define SENDMESSAGE_SOURCE
  28. #include <stdint.h>
  29. #include "../plc/plc.h"
  30. ssize_t sendmessage (struct channel const * channel, struct message * message, ssize_t length)
  31. {
  32. return (sendpacket (channel, message, length));
  33. }
  34. #endif