increased chunk size

Dependencies:   HTTPClient-SSL

Fork of MTS-Socket by MultiTech

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Socket.h Source File

Socket.h

00001 #ifndef SOCKET_H
00002 #define SOCKET_H
00003 
00004 #include "IPStack.h"
00005 
00006 /** Socket file descriptor and select wrapper
00007   */
00008 class Socket {
00009 public:
00010     /** Socket
00011      */
00012     Socket();
00013     
00014     /** Set blocking or non-blocking mode of the socket and a timeout on
00015         blocking socket operations
00016     \param blocking  true for blocking mode, false for non-blocking mode.
00017     \param timeout   timeout in ms [Default: (1500)ms].
00018     */
00019     void set_blocking(bool blocking, unsigned int timeout=1500);
00020     
00021     /** Close the socket file descriptor
00022      */
00023     int close(bool shutdown = true);
00024     
00025     ~Socket();
00026     
00027 protected:
00028     bool _blocking;
00029     int _timeout;
00030     IPStack * ip;
00031 };
00032 
00033 
00034 #endif /* SOCKET_H_ */