Example #1
0
//server
func ListenAndServe_ServiceRpc(addr string, obj *ServiceRpc, psk *[32]byte) (closer func() error) {
	s := NewServer_ServiceRpc(obj, psk)
	return kmgHttp.MustGoHttpAsyncListenAndServeWithCloser(addr, s)
}
Example #2
0
//server
func ListenAndServe_Demo(addr string, obj *Demo) (closer func() error) {
	s := &generateServer_Demo{
		obj: obj,
	}
	return kmgHttp.MustGoHttpAsyncListenAndServeWithCloser(addr, s)
}