Skip to content

Commit e45679d

Browse files
committed
适配新版本CovScript
1 parent 3ef76a7 commit e45679d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

network.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
namespace network_cs_ext {
2626
using namespace cs;
2727
static extension network_ext;
28-
static extension_t network_ext_shared = make_shared_extension(network_ext);
28+
static extension_t network_ext_shared = make_shared_namespace(network_ext);
2929

3030
string host_name()
3131
{
@@ -34,7 +34,7 @@ namespace network_cs_ext {
3434

3535
namespace tcp {
3636
static extension tcp_ext;
37-
static extension_t tcp_ext_shared = make_shared_extension(tcp_ext);
37+
static extension_t tcp_ext_shared = make_shared_namespace(tcp_ext);
3838
using socket_t=std::shared_ptr<cs_impl::network::tcp::socket>;
3939
using acceptor_t=std::shared_ptr<asio::ip::tcp::acceptor>;
4040
using endpoint_t=asio::ip::tcp::endpoint;
@@ -86,7 +86,7 @@ namespace network_cs_ext {
8686

8787
namespace socket {
8888
static extension socket_ext;
89-
static extension_t socket_ext_shared = make_shared_extension(socket_ext);
89+
static extension_t socket_ext_shared = make_shared_namespace(socket_ext);
9090

9191
var socket()
9292
{
@@ -166,7 +166,7 @@ namespace network_cs_ext {
166166

167167
namespace udp {
168168
static extension udp_ext;
169-
static extension_t udp_ext_shared = make_shared_extension(udp_ext);
169+
static extension_t udp_ext_shared = make_shared_namespace(udp_ext);
170170
using socket_t=std::shared_ptr<cs_impl::network::udp::socket>;
171171
using endpoint_t=asio::ip::udp::endpoint;
172172

@@ -206,7 +206,7 @@ namespace network_cs_ext {
206206

207207
namespace socket {
208208
static extension socket_ext;
209-
static extension_t socket_ext_shared = make_shared_extension(socket_ext);
209+
static extension_t socket_ext_shared = make_shared_namespace(socket_ext);
210210

211211
var socket()
212212
{

0 commit comments

Comments
 (0)