下载
文档
参与
帮助
全栈开发网
基金会
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Вступ »
« SNMPException
Посібник з PHP
Довідник функцій
Інші сервіси
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Sockets
Вступ
Встановлення/налаштування
Встановлення
Типи ресурсів
Попередньо визначені константи
Приклади
Socket Errors
Socket Функції
socket_accept
— Accepts a connection on a socket
socket_addrinfo_bind
— Create and bind to a socket from a given addrinfo
socket_addrinfo_connect
— Create and connect to a socket from a given addrinfo
socket_addrinfo_explain
— Get information about addrinfo
socket_addrinfo_lookup
— Get array with contents of getaddrinfo about the given hostname
socket_atmark
— Determines whether socket is at out-of-band mark
socket_bind
— Binds a name to a socket
socket_clear_error
— Clears the error on the socket or the last error code
socket_close
— Closes a Socket instance
socket_cmsg_space
— Calculate message buffer size
socket_connect
— Initiates a connection on a socket
socket_create
— Create a socket (endpoint for communication)
socket_create_listen
— Opens a socket on port to accept connections
socket_create_pair
— Creates a pair of indistinguishable sockets and stores them in an array
socket_export_stream
— Export a socket into a stream that encapsulates a socket
socket_get_option
— Gets socket options for the socket
socket_getopt
— Псевдонім socket_get_option
socket_getpeername
— Queries the remote side of the given socket
socket_getsockname
— Queries the local side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type
socket_import_stream
— Import a stream
socket_last_error
— Returns the last error on the socket
socket_listen
— Listens for a connection on a socket
socket_read
— Reads a maximum of length bytes from a socket
socket_recv
— Receives data from a connected socket
socket_recvfrom
— Receives data from a socket whether or not it is connection-oriented
socket_recvmsg
— Read a message
socket_select
— Runs the select() system call on the given arrays of sockets with a specified timeout
socket_send
— Sends data to a connected socket
socket_sendmsg
— Send a message
socket_sendto
— Sends a message to a socket, whether it is connected or not
socket_set_block
— Sets blocking mode on a socket
socket_set_nonblock
— Sets nonblocking mode for file descriptor fd
socket_set_option
— Sets socket options for the socket
socket_setopt
— Псевдонім socket_set_option
socket_shutdown
— Shuts down a socket for receiving, sending, or both
socket_strerror
— Return a string describing a socket error
socket_write
— Write to a socket
socket_wsaprotocol_info_export
— Exports the WSAPROTOCOL_INFO Structure
socket_wsaprotocol_info_import
— Imports a Socket from another Process
socket_wsaprotocol_info_release
— Releases an exported WSAPROTOCOL_INFO Structure
Socket
— The Socket class
AddressInfo
— The AddressInfo class
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google