Procházet zdrojové kódy

init.go

[fin]send
secure
jaehoon_kim před 5 roky
rodič
revize
1daacf6d10
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3
    2
      modules/init.go

+ 3
- 2
modules/init.go Zobrazit soubor

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)

Načítá se…
Zrušit
Uložit