diff --git a/config.json b/config.json index 12a20dd..d30108a 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "modules": [ { - "type": "tcp.server", + "type": "net.tcp.server", "params": { "port": 8000 } diff --git a/tcp-client.go b/tcp-client.go index 4db5728..b29e203 100644 --- a/tcp-client.go +++ b/tcp-client.go @@ -14,7 +14,7 @@ type TCPClient struct { func init() { RegisterModule(ModuleRegistration{ - Type: "tcp.client", + Type: "net.tcp.client", New: func(params map[string]any) (Module, error) { host, ok := params["host"] diff --git a/tcp-server.go b/tcp-server.go index 03aab93..a3fdc33 100644 --- a/tcp-server.go +++ b/tcp-server.go @@ -12,7 +12,7 @@ type TCPServer struct { func init() { RegisterModule(ModuleRegistration{ - Type: "tcp.server", + Type: "net.tcp.server", New: func(params map[string]any) (Module, error) { port, ok := params["port"] if !ok { diff --git a/udp-server.go b/udp-server.go index 2f5d0ba..523c347 100644 --- a/udp-server.go +++ b/udp-server.go @@ -13,7 +13,7 @@ type UDPServer struct { func init() { RegisterModule(ModuleRegistration{ - Type: "udp.server", + Type: "net.udp.server", New: func(params map[string]any) (Module, error) { port, ok := params["port"] if !ok {