File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class CPassiveSocket;
5151// / An active socket is used to create a socket which connects to a server.
5252// / This type of object would be used when an application needs to send/receive
5353// / data from a server.
54- class CActiveSocket : public CSimpleSocket {
54+ class EXPORT CActiveSocket : public CSimpleSocket {
5555public:
5656 friend class CPassiveSocket ;
5757
Original file line number Diff line number Diff line change @@ -250,6 +250,12 @@ extern "C"
250250 #define FPRINTF fprintf
251251#endif
252252
253+ #ifdef _MSC_VER
254+ #define EXPORT __declspec(dllexport)
255+ #else
256+ #define EXPORT
257+ #endif
258+
253259#ifdef __cplusplus
254260}
255261#endif
Original file line number Diff line number Diff line change 5252// / in a similar fashion. The big difference is that the method
5353// / CPassiveSocket::Accept should not be called on the latter two socket
5454// / types.
55- class CPassiveSocket : public CSimpleSocket {
55+ class EXPORT CPassiveSocket : public CSimpleSocket {
5656public:
5757 CPassiveSocket (CSocketType type = SocketTypeTcp);
5858 virtual ~CPassiveSocket () {
Original file line number Diff line number Diff line change 9999// / - Socket types
100100// / -# CActiveSocket Class
101101// / -# CPassiveSocket Class
102- class CSimpleSocket {
102+ class EXPORT CSimpleSocket {
103103public:
104104 // / Defines the three possible states for shuting down a socket.
105105 typedef enum
Original file line number Diff line number Diff line change 6868
6969// / Class to abstract socket communications in a cross platform manner.
7070// / This class is designed
71- class CStatTimer {
71+ class EXPORT CStatTimer {
7272public:
7373 CStatTimer ()
7474 {
You can’t perform that action at this time.
0 commit comments