Post

Visualizzazione dei post da ottobre, 2015

Package RPC

Remote precedure call The package net/rpc allows Go programs to communicate each others. The package provides access to remote exported methods of an object, implementing a client-server paradigm. Methods have made visible to remote clients  as a service with the name of the type of the object.  Objects must be exported and registered on the server in order to be accessible.  A server may register multiple objects of different types but you can not register objects of the same type . Only the  exported   methods that meet certain conditions are made accessible: the method has two arguments, both exported (or builtin) types the method's second argument is a pointer, but usually also the first is a pointer the method has return type error The methods that meet these criteria are remotely accessible, other methods of the object are ignored and not accessible. Communication occurs serializing the parameters through the gob format. The transport is done using a raw netw
The Jorney Starts In this blog I want to start a journey in the Go language (Golang) and its applications. I will examine the problems that developers encounter every day and I will propose solutions simple as I can.