php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
xp_socket.c File Reference
#include "php.h"
#include "ext/standard/file.h"
#include "streams/php_streams_int.h"
#include "php_network.h"

Go to the source code of this file.

Macros

#define MSG_DONTWAIT   0
 
#define MSG_PEEK   0
 
#define XP_SOCK_BUF_SIZE(sz)
 

Functions

PHPAPI php_streamphp_stream_generic_socket_factory (const char *proto, size_t protolen, const char *resourcename, size_t resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC)
 

Variables

const php_stream_ops php_stream_generic_socket_ops
 
PHPAPI const php_stream_ops php_stream_socket_ops
 

Macro Definition Documentation

◆ MSG_DONTWAIT

#define MSG_DONTWAIT   0

Definition at line 31 of file xp_socket.c.

◆ MSG_PEEK

#define MSG_PEEK   0

Definition at line 35 of file xp_socket.c.

◆ XP_SOCK_BUF_SIZE

#define XP_SOCK_BUF_SIZE ( sz)
Value:
(sz)

Definition at line 42 of file xp_socket.c.

Function Documentation

◆ php_stream_generic_socket_factory()

PHPAPI php_stream * php_stream_generic_socket_factory ( const char * proto,
size_t protolen,
const char * resourcename,
size_t resourcenamelen,
const char * persistent_id,
int options,
int flags,
struct timeval * timeout,
php_stream_context *context STREAMS_DC )

Definition at line 932 of file xp_socket.c.

Variable Documentation

◆ php_stream_generic_socket_ops

const php_stream_ops php_stream_generic_socket_ops
Initial value:
= {
php_sockop_write, php_sockop_read,
php_sockop_close, php_sockop_flush,
"generic_socket",
NULL,
php_sockop_cast,
php_sockop_stat,
php_sockop_set_option,
}
#define NULL
Definition gdcache.h:45

Definition at line 45 of file xp_socket.c.

◆ php_stream_socket_ops

const php_stream_ops php_stream_socket_ops
Initial value:
= {
php_sockop_write, php_sockop_read,
php_sockop_close, php_sockop_flush,
"tcp_socket",
NULL,
php_sockop_cast,
php_sockop_stat,
php_tcp_sockop_set_option,
}

Definition at line 46 of file xp_socket.c.