move under net namespace

This commit is contained in:
Joel Wetzell
2025-11-18 18:35:17 -06:00
parent a7996530a1
commit e1a8bef3fb
4 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"modules": [
{
"type": "tcp.server",
"type": "net.tcp.server",
"params": {
"port": 8000
}

View File

@@ -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"]

View File

@@ -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 {

View File

@@ -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 {