History log of /php-src/main/network.c (Results 176 – 200 of 269)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 1b53a2d1 28-Feb-2003 Wez Furlong

New user-space functions:
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept

New user-space functions:
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.

Tidy up some leaks and debug printfs.
Move more streams functions into streamsfuncs.c and streamsfuncs.h.

show more ...

# e0899443 28-Feb-2003 Ilia Alshanetsky

compiler warning fixed.

# 203068d0 27-Feb-2003 Wez Furlong

Fixup build for win32

# fd61f690 27-Feb-2003 Wez Furlong

Another big commit (tm).

Main Changes:
- Implement a socket transport layer for use by all code that needs to open
some kind of "special" socket for network or IPC.
- Extension

Another big commit (tm).

Main Changes:
- Implement a socket transport layer for use by all code that needs to open
some kind of "special" socket for network or IPC.
- Extensions can register (and override) transports.
- Implement ftruncate() on streams via the ioctl-alike option interface.
- Implement mmap() on streams via the ioctl-alike option interface.
- Implement generic crypto API via the ioctl-alike option interface.
(currently only supports OpenSSL, but could support other SSL toolkits,
and other crypto transport protocols).

Impact:
- tcp sockets can be overloaded by the openssl capable sockets at runtime,
removing the link-time requirement for ssl:// and https:// sockets and
streams.
- checking stream types using PHP_STREAM_IS_SOCKET is deprecated, since
there are now a range of possible socket-type streams.

Working towards:
- socket servers using the new transport layer
- mmap support under win32
- Cleaner code.

# I will be updating the win32 build to add the new files shortly
# after this commit.

show more ...

# c1bdf163 21-Feb-2003 Wez Furlong

Add comment about thread-safety of gethostbyname on win32.
Set the correct path to the win32 config.h file in the .dsp file.

# 8e3f23e3 19-Feb-2003 foobar

ws fixes + missing $Id$ tags, headers added

# 4934744b 17-Feb-2003 Zeev Suraski

Win32 build improvements

Revision tags: php-4.3.1
# 0a18a9d7 16-Feb-2003 Wez Furlong

A add much more useful select(2) implementation than is provided by
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file de

A add much more useful select(2) implementation than is provided by
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.

show more ...

# 77b98f86 13-Feb-2003 Wez Furlong

Potential fixes for #21809 and #22099.

Revision tags: PHP_5_0_dev_before_13561_fix, PHP_4_3_before_13561_fix
# 2c5d4b8c 31-Dec-2002 Sebastian Bergmann

Bump year.

Revision tags: php-4.3.0
# 90c47866 22-Dec-2002 Wez Furlong

A Simple fix for Bug #12360 (fsockopen timeout doesn't work).

Analysis:
On systems with HAVE_GETADDRINFO and IPV6 support, php_hostconnect would
attempt to connect to each possible a

A Simple fix for Bug #12360 (fsockopen timeout doesn't work).

Analysis:
On systems with HAVE_GETADDRINFO and IPV6 support, php_hostconnect would
attempt to connect to each possible address that matched the requested IP.

If the remote host:port combination are dropping packets this would cause the
first connection to timeout (after waiting for the full timeout duration).

PHP would then attempt the second address and wait the full duration again.

Solution:
If the first connection attempt times out, abort the connection loop.

show more ...

Revision tags: php-4.3.0RC4, RELEASE_1_0b3, php-4.3.0RC3, php-4.3.0RC2, RELEASE_1_0b2, BEFORE_RENAMING, php-4.3.0RC1
# f8486bc3 29-Oct-2002 Wez Furlong

Fix for #19508 by poleson@verio.net.

Revision tags: php-4.3.0pre2
# ec400b8d 19-Oct-2002 Ilia Alshanetsky

Silence compile warning, when compiling --with-openssl.

# 8ca0b28b 19-Oct-2002 Ilia Alshanetsky

Fixed a typo.

# 7de1f45a 18-Oct-2002 Wez Furlong

Revert my last bogus commit.
Change the comparison to something that is less likely to inspire me to
make the same mistake again...

# e0c02649 18-Oct-2002 Wez Furlong

Improve EOF detection. Fixes #19970.

# be560650 14-Oct-2002 Wez Furlong

Implement better SSL error handling.

# 0bcd2ccb 13-Oct-2002 Wez Furlong

A much better probable fix for #16114.

# bc0948bb 13-Oct-2002 Wez Furlong

Probable fix for #16114

# 70b796b1 13-Oct-2002 Wez Furlong

(php_socket_errno) win32 errno compatible macro.
(php_socket_strerror) win32 compatible strerror replacement.
Add an E_NOTICE when a socket write fails.

Revision tags: RELEASE_1_0b1, php-4.3.0pre1
# 077fe52d 05-Oct-2002 Wez Furlong

This seems to resolve the issues with fgets.
I've moved EOF detection into the streams layer; a stream reader
implementation should set stream->eof when it detects EOF.
Fixed test for use

This seems to resolve the issues with fgets.
I've moved EOF detection into the streams layer; a stream reader
implementation should set stream->eof when it detects EOF.
Fixed test for user streams - it still fails but that is due to an output
buffering bug.

show more ...

# a4ec211e 04-Oct-2002 Sascha Schumann

Add a few notes

# 9c5883bd 04-Oct-2002 Wez Furlong

replace dont_block with a flag.

# 4f7e6dad 04-Oct-2002 Sascha Schumann

Improve the general behaviour of stream_gets and fix its semantics
with regard to sockets. The behaviour should be aligned with PHP 4.2 now.
This has been verified to some degree.

If

Improve the general behaviour of stream_gets and fix its semantics
with regard to sockets. The behaviour should be aligned with PHP 4.2 now.
This has been verified to some degree.

If the underlying stream operations block when no new data is readable,
we need to take extra precautions.

If there is buffered data available, we check for a EOL. If it exists,
we pass the data immediately back to the caller. This saves a call
to the read implementation and will not block where blocking
is not necessary at all.

If the stream buffer contains more data than the caller requested,
we can also avoid that costly step and simply return that data.

show more ...

Revision tags: MODERN_SYMMETRIC_SESSION_BEHAVIOUR_20021003
# 9509c209 28-Sep-2002 Wez Furlong

remove chunk size setting code (it's now in streams.c).
Move timeout setting code.

1234567891011