server data rx changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user