X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bc3ec1ff5384eab3f8fb5b3a0ca7f7887889813..d8fd7acb8b877599b410e07a4c26dde92a676a82:/include/wx/socket.h diff --git a/include/wx/socket.h b/include/wx/socket.h index 15a718b4fd..ac1c7d3640 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -12,10 +12,6 @@ #ifndef _WX_SOCKET_H_ #define _WX_SOCKET_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "socket.h" -#endif - #include "wx/defs.h" #if wxUSE_SOCKETS @@ -234,7 +230,7 @@ class WXDLLIMPEXP_NET wxSocketServer : public wxSocketBase DECLARE_CLASS(wxSocketServer) public: - wxSocketServer(wxSockAddress& addr, wxSocketFlags flags = wxSOCKET_NONE); + wxSocketServer(const wxSockAddress& addr, wxSocketFlags flags = wxSOCKET_NONE); wxSocketBase* Accept(bool wait = true); bool AcceptWith(wxSocketBase& socket, bool wait = true); @@ -276,12 +272,12 @@ class WXDLLIMPEXP_NET wxDatagramSocket : public wxSocketBase DECLARE_CLASS(wxDatagramSocket) public: - wxDatagramSocket(wxSockAddress& addr, wxSocketFlags flags = wxSOCKET_NONE); + wxDatagramSocket(const wxSockAddress& addr, wxSocketFlags flags = wxSOCKET_NONE); wxDatagramSocket& RecvFrom( wxSockAddress& addr, void* buf, wxUint32 nBytes ); - wxDatagramSocket& SendTo( wxSockAddress& addr, + wxDatagramSocket& SendTo( const wxSockAddress& addr, const void* buf, wxUint32 nBytes );