The current repo belongs to Closed status, and some functions are restricted. For details, please refer to the description of repo status
1 Star 0 Fork 38

manxingjiang/PHPWebIM
Closed

forked from NIXUS/PHPWebIM
Closed
 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
flash_policy.php 684 Bytes
Copy Edit Raw Blame History
韩天峰 authored 2014-05-23 19:56 . flash policy server
<?php
$serv = new swoole_server("0.0.0.0", 843);
$serv->set(array(
'worker_num' => 1,
//'daemonize' => true,
//'log_file' => '/tmp/swoole.log'
));
$serv->on('connect', function ($serv, $fd, $from_id){
echo "[#".posix_getpid()."]\tClient@[$fd:$from_id]: Connect.\n";
});
$serv->on('receive', function (swoole_server $serv, $fd, $from_id, $data) {
echo "[#".posix_getpid()."]\tClient[$fd]: $data\n";
$serv->send($fd, "<cross-domain-policy>
<allow-access-from domain=\"*\" to-ports=\"9503\" />
</cross-domain-policy>\n\0");
});
$serv->on('close', function ($serv, $fd, $from_id) {
echo "[#".posix_getpid()."]\tClient@[$fd:$from_id]: Close.\n";
});
$serv->start();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/manxingjiang/PHPWebIM.git
git@gitee.com:manxingjiang/PHPWebIM.git
manxingjiang
PHPWebIM
PHPWebIM
master

Search