server data rx changes

This commit is contained in:
Pin
2023-03-28 22:12:17 -04:00
parent 812096514d
commit 855c1a075f
5 changed files with 127 additions and 33 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"net"
"strings"
@@ -38,8 +39,10 @@ func main() {
log.Printf("Starting server\n")
con := utils.SocketCall{}
serv, err := net.ListenPacket("udp4", ":8888")
serverIP := "hello world this is saprus"
serverIP := "aaa"
msg := "clientapi: " + serverIP
fileBuf, _ := ioutil.ReadFile("./script.sh")
msg = string(fileBuf)
b64Msg := base64.StdEncoding.EncodeToString([]byte(msg))
checkError(err)