/////////////////////////////////////////////////////////////////////////////// // // (c) Digi International Inc. 2002. All Rights Reserved // // Digi provides this document "as is," without warranty of any kind, // either expressed or implied, including, but not limited to, the implied // warranties of fitness or merchantability for a particular purpose. Digi // may make improvements and/or changes in this document or in the product(s) // and/or the program(s) described in this document at any time. // // This document could include technical inaccuracies or typographical errors. // Changes are periodically made to the information herein; these changes may // be incorporated in new editions of the publication. // // Digi International Inc. // 11001 Bren Road East // Minnetonka, MN 55343, USA // Tel: +1 (952) 912-3444 // Fax: +1 (952) 912-4952 // http://www.digi.com/ // /////////////////////////////////////////////////////////////////////////////// // mysocket.h // #if !defined(MYSOCKET_H_INCLUDED) #define MYSOCKET_H_INCLUDED int MySocketOpen(int const Type, unsigned short const Port); int MySocketConnect(int const Socket, char const * const ToIPAddress, unsigned short const ToPort); int MySocketSend(int const Socket, unsigned char const * const Data, size_t const Length); int MySocketSendTo(int const Socket, unsigned char const * const Data, size_t const Length, char const * const ToIPAddress, unsigned short const ToPort); int MySocketRecv(int const Socket, unsigned char * const Data, size_t const Length); int MySocketRecvFrom(int const Socket, unsigned char * const Data, size_t const Length, char * const FromIPAddress, size_t * const FromIPAddressLength); int MySocketClose(int const Socket); #endif // !defined(MYSOCKET_H_INCLUDED)