Skip to content

elmaxid/stream_socket_multithreading

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream Socket Multithreading Server/Client

This is a basic implementation of stream sockets and thread resources.

Before anything, in command line (linux environment), run composer dump-autoload command to generate autoload files:

composer dump-autoload

Use files inside tests/ directory to run server/client:

cd <project_path>/tests/

Start Server:

To accept one connection at a time:

php ServerSingleThreadTest.php

To accept many connections:

php ServerMultiThreadTest.php

Run Client:

php ClientTest.php

About

A basic implementation of stream sockets and thread resources.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%