func createSockets() (*zmq.Context, SocketGroup, error) {

	context, err := zmq.NewContext()
	if err != nil {
		return context, SocketGroup{}, errors.Wrap(err, "Could not create zmq Context")
	}

	var sg SocketGroup
	sg.ShellSocket, err = context.NewSocket(zmq.ROUTER)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get Shell Socket")
	}

	sg.ControlSocket, err = context.NewSocket(zmq.ROUTER)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get Control Socket")
	}

	sg.StdinSocket, err = context.NewSocket(zmq.ROUTER)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get Stdin Socket")
	}

	sg.IOPubSocket, err = context.NewSocket(zmq.PUB)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get IOPub Socket")
	}

	return context, sg, nil
}
// createSockets initializes the sockets for the socket group based on values from zmq.
createSockets initializes the sockets for the socket group based on values from zmq.
// createSockets initializes the sockets for the socket group based on values from zmq .
func createSockets() (*zmq.Context, SocketGroup, error) {
	context, err := zmq.NewContext()
	if err != nil {
		return context, SocketGroup{}, errors.Wrap(err, "Could not create zmq Context")
	}
	var sg SocketGroup
	sg.ShellSocket, err = context.NewSocket(zmq.ROUTER)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get Shell Socket")
	}
	sg.ControlSocket, err = context.NewSocket(zmq.ROUTER)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get Control Socket")
	}
	sg.StdinSocket, err = context.NewSocket(zmq.ROUTER)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get Stdin Socket")
	}
	sg.IOPubSocket, err = context.NewSocket(zmq.PUB)
	if err != nil {
		return context, sg, errors.Wrap(err, "Could not get IOPub Socket")
	}
	return context, sg, nil
}
func createSockets ( ) ( * zmq . Context , SocketGroup , error ) { context , err := zmq . NewContext ( ) if err != nil { return context , SocketGroup { } , errors . Wrap ( err , " " ) } var sg SocketGroup sg . ShellSocket , err = context . NewSocket ( zmq . ROUTER ) if err != nil { return context , sg , errors . Wrap ( err , " " ) } sg . ControlSocket , err = context . NewSocket ( zmq . ROUTER ) if err != nil { return context , sg , errors . Wrap ( err , " " ) } sg . StdinSocket , err = context . NewSocket ( zmq . ROUTER ) if err != nil { return context , sg , errors . Wrap ( err , " " ) } sg . IOPubSocket , err = context . NewSocket ( zmq . PUB ) if err != nil { return context , sg , errors . Wrap ( err , " " ) } return context , sg , nil }
createSockets initializes the sockets for the socket group based on values from zmq.
createSockets initializes the sockets for the socket group based on values from zmq .