type RegisterParams struct {
Type Type
Name Name
//Cannot get caller IP from rpc library.
//Might as well send listening port too.
Address string
Port string
// ListenSocket net.TCPAddr
}
Reason: ListenSocket of type net.TCPAddr is difficult to create after finding out the sensor's IP and port where it would listen.
changing the struct to:
type RegisterParams struct { Type Type Name Name //Cannot get caller IP from rpc library. //Might as well send listening port too. Address string Port string // ListenSocket net.TCPAddr }
Reason: ListenSocket of type net.TCPAddr is difficult to create after finding out the sensor's IP and port where it would listen.