Explorar el Código

init.go

[fin]send
secure
jaehoon_kim hace 4 años
padre
commit
1daacf6d10
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      modules/init.go

+ 3
- 2
modules/init.go Ver fichero

@@ -31,8 +31,9 @@ type Moscato struct {
31 31
 }
32 32
 
33 33
 // Send - rpc를 이용하여 msg전송
34
-func Send(ipaddr string, message MsgUnit) error {
35
-	return nil
34
+func (moscato *Moscato)Send(ipaddr string, message MsgUnit, reply []byte)([]byte, error) {
35
+	reply,err:=message.ConvertToJson()
36
+	return reply,err
36 37
 }
37 38
 
38 39
 // Recieve - rpc를 이용하여 msg전달 받음(rpc call)

Loading…
Cancelar
Guardar