Commit Graph

40 Commits

Author SHA1 Message Date
Stefan Csomor
fcbd7e5a12 now it's uint32 on mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-07 13:35:09 +00:00
Julian Smart
99d800190a Added licence/copyright information
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-04 18:57:50 +00:00
Stefan Neis
8c0f890626 Fixed compilation error on unknown type "in_addr_t".
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-28 19:46:01 +00:00
Kevin Hock
e400d27dcc Added comments explaining more about the changes in my last commit. Also, removed __DARWIN__ check for enabling CONNECTION events, always wait to enable them until after the connect() call.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-16 05:11:37 +00:00
David Elliott
7be8c821b7 Dammit, try it again this time actually removing it instead of adding it
again (forgot to give patch the -R).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 02:15:41 +00:00
David Elliott
b35bb76271 Reverted 1.32. This breaks my Tiger builds which is part of the reason
I reverted the last incarnation of this in the first place!!!


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-14 02:12:15 +00:00
Kevin Hock
bb154f79f3 Automatic use of MSG_NOSIGNAL or SO_NOSIGPIPE (checked at compile time); moved enabling of connection events on Darwin after connection has been accepted in WaitConnection; in Connect, enable events only after connection has succeeded rather than unconditionally before; do not close connection when a socket call results in EWOULDBLOCK, EAGAIN or EINTR, as these do not indicate a closed connection; loop around calls to send and recv so that socket calls returning EINTR can be immediately retried; check for invalid socket pointer in Detected_Read
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-09 18:12:27 +00:00
Vadim Zeitlin
1d836590aa fix warning about comparing (signed) -1 with (unsigned) in_addr_t under Solaris
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-06 13:43:56 +00:00
Ryan Norton
39707b8019 fix warnings on cocoa 10.2 also
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-04 05:52:32 +00:00
Ryan Norton
b9160e5eac fix pointer conversion warnings on OSX 10.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-03 09:52:40 +00:00
Stefan Neis
d1f8e97b03 Fixed a compilation problem on AIX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-26 16:03:51 +00:00
Vadim Zeitlin
1539bf2744 fixed crash if an error happened inside WaitConnection() (patch 1093852)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 16:11:09 +00:00
David Elliott
ddc1a35fc9 Some platforms that use socklen_t don't use it for the fifth argument to
getsockopt.  Do a separate test and define SOCKOPTLEN_T appropriately.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-28 03:17:50 +00:00
David Elliott
f71bb8efc3 Cast 4th parameter of getsockopt to char* and of setsockopt to const char*
so that older headers such as those found on Solaris 2.6 will work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-09 04:20:38 +00:00
David Webster
b715de93a6 Removed temp OS/2 fix. Header now fixed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-21 13:58:08 +00:00
David Webster
f6bc1c74e8 getservbyname under INNOTEK gcc needs a (char*), not (const char*) for the protocol argument
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 19:26:11 +00:00
Vadim Zeitlin
1eef64d836 initialize m_reusable (patch 1035725)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 20:51:19 +00:00
Ryan Norton
7488a05edb PATCH: [ 1033006 ] Fix: socket s timeout of < 1s doesnt work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 05:48:24 +00:00
Ryan Norton
54d5abee41 OK - Robin's right, it is already a SOCKLEN_T
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 23:57:37 +00:00
Ryan Norton
7d065a0afe Fix warning on OSX - its on int on mac/msw and a socklen_t on others
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 22:09:34 +00:00
Robin Dunn
f565c05e6b Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 22:01:08 +00:00
Ryan Norton
e6e1f5176e SOCKLEN_T handling for OSX - it seems to be defined as a size_t, when the parameters to the functions where it is handled is really an int (avoids multiple conversion warnings)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 17:17:43 +00:00
Stefan Neis
ebdab982e9 Get rid of warning about select being undeclared on OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-08 21:03:51 +00:00
David Elliott
948c96efa1 Use bool instead of int. Replace TRUE/FALSE with true/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-08 05:30:36 +00:00
David Elliott
3e1400ac6a Removed incorrect struct qualifier from GSocketGUIFunctionsTable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-08 04:48:33 +00:00
Robin Dunn
9a7e4a56b6 At least correct the compile error until we decide what to for real.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-07 03:04:44 +00:00
David Elliott
85431efa68 Use delete foo; instead of GSocket_destroy(foo);
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-06 22:28:19 +00:00
David Elliott
d2d9c80325 Accidently left in an extra {} and also had wrong license name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-03 19:22:09 +00:00
David Elliott
ba2a81d747 Revert original UNIX C->C++ conversion and instead make it work exactly
like the new MSW C++ GSocket.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-03 19:18:39 +00:00
David Elliott
b082b52407 Incorporated src/unix/gsocket.c 1.86 to 1.92 changes (except 1.90 to 1.91
which was applied by Vadim as 1.9 to 1.10 of src/unix/gsocket.cpp)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-27 02:15:32 +00:00
Vadim Zeitlin
f7aa747716 removed _GSocket::m_oriented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-26 21:33:54 +00:00
David Elliott
9d71596027 Incorporated gsocket.c 1.80 to 1.86 changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-24 04:00:17 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
David Elliott
758f1d2e02 Reverting wxAppTraits GSocket patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-19 18:40:45 +00:00
David Elliott
5c2896013b * Add my name to authors as the new maintainer.
* Include wxWindows header files in the standard manner.
* Use the new wxAppTraits::CreateGSocket() method.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-18 21:39:17 +00:00
David Elliott
1119a830a8 Move GSocketBSDGUIShim from source file to header (we'll need it in a second)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-18 20:17:29 +00:00
David Elliott
444cb1fdcb Add virtual methods to GSocketBSD for calling the event loop handler
instead of the GUI event functions table.  Also added a compatibility class
to gsocket.cpp until we can update all of the GUIs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-18 19:34:16 +00:00
David Elliott
09e6e5ec02 Initial move from C to C++. The functionality of the code should not have
changed at all in this move from C to C++.  To top that off there is a
define wxUSE_GSOCKET_CPLUSPLUS in include/wx/gsocket.h which turns off
all the new code in that file and also gsockunx.h.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-18 07:46:18 +00:00
David Elliott
97e6ee0454 Copied gsocket.c revision 1.80
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-17 22:17:58 +00:00