User Tools

Site Tools


uphp:functions:fsockopen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
uphp:functions:fsockopen [2017/05/08 14:26]
jeff
uphp:functions:fsockopen [2017/05/11 23:03]
jeff
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">int <span style="font-size:125%;color:green">int
 <span style="color:black">fsockopen ( <span style="color:black">fsockopen (
Line 19: Line 18:
 <span style="color:blue">$timeout <span style="color:blue">$timeout
 <span style="color:black">] ) <span style="color:black">] )
-</html> +</html></well>
-</well>+
  
 Attempts to create a socket to a remote host using the protocol specified, and return the file handle for future operations. By default a TCP/IP connection will be initiated. If a UDP connection is required prefix the host name with udp:%%//%% (lower case). The socket will be opened in blocking mode. Attempts to create a socket to a remote host using the protocol specified, and return the file handle for future operations. By default a TCP/IP connection will be initiated. If a UDP connection is required prefix the host name with udp:%%//%% (lower case). The socket will be opened in blocking mode.
Line 32: Line 30:
 <html><b><span style="color:blue">$timeout<span style="color:black"></b></html>:  Connection timeout in seconds, optional (if not specified the system wide setting in [[os:config:uphp.ini]] will be used). <html><b><span style="color:blue">$timeout<span style="color:black"></b></html>:  Connection timeout in seconds, optional (if not specified the system wide setting in [[os:config:uphp.ini]] will be used).
  
-====Return Value====+====Return Values====
  
 <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  File handle, or 0 if the attempt to open the connection fails <html><b><span style="color:green">Integer<span style="color:black"></b></html>:  File handle, or 0 if the attempt to open the connection fails
uphp/functions/fsockopen.txt · Last modified: 2021/09/13 05:57 (external edit)