PHP code example of xp-framework / networking

1. Go to this page and download the library: Download xp-framework/networking library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xp-framework / networking example snippets


package peer {
  public abstract enum peer.Sockets

  public class peer.AuthenticationException
  public class peer.BSDSocket
  public class peer.ConnectException
  public class peer.CryptoSocket
  public class peer.ProtocolException
  public class peer.SSLSocket
  public class peer.ServerSocket
  public class peer.Socket
  public class peer.SocketEndpoint
  public class peer.SocketException
  public class peer.SocketInputStream
  public class peer.SocketOutputStream
  public class peer.SocketTimeoutException
  public class peer.TLSSocket
  public class peer.UDPSocket
  public class peer.URL
}

package peer.net {
  public abstract class peer.net.InetAddress

  public class peer.net.Inet4Address
  public class peer.net.Inet6Address
  public class peer.net.InetAddressFactory
  public class peer.net.NameserverLookup
  public class peer.net.Network
  public class peer.net.NetworkParser
}

package peer.server {
  public interface peer.server.ServerProtocol

  public class peer.server.AsyncServer
  public class peer.server.EventServer
  public class peer.server.EventSocket
  public class peer.server.ForkingServer
  public class peer.server.PreforkingServer
  public class peer.server.Server
}

package peer.server.protocol {
  public interface peer.server.protocol.OutOfResourcesHandler
  public interface peer.server.protocol.SocketAcceptHandler
}