Преглед на файлове

init.go

[fin]send
secure
jaehoon_kim преди 4 години
родител
ревизия
1daacf6d10
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3
    2
      modules/init.go

+ 3
- 2
modules/init.go Целия файл

@@ -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…
Отказ
Запис