Sfoglia il codice sorgente

init.go

[fin]send
secure
jaehoon_kim 4 anni fa
parent
commit
1daacf6d10
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3
    2
      modules/init.go

+ 3
- 2
modules/init.go Vedi File

31
 }
31
 }
32
 
32
 
33
 // Send - rpc를 이용하여 msg전송
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
 // Recieve - rpc를 이용하여 msg전달 받음(rpc call)
39
 // Recieve - rpc를 이용하여 msg전달 받음(rpc call)

Loading…
Annulla
Salva