package main import ( "fmt" nex "github.com/PretendoNetwork/nex-go" nexproto "github.com/PretendoNetwork/nex-protocols-go" ) func completePostObject(err error, client *nex.Client, callID uint32, dataStoreCompletePostParam *nexproto.DataStoreCompletePostParam) { // STUBBED // TODO: DO SOMETHING WITH THE DATA fmt.Printf("%+v\n", dataStoreCompletePostParam) rmcResponse := nex.NewRMCResponse(nexproto.DataStoreProtocolID, callID) rmcResponse.SetSuccess(nexproto.DataStoreMethodCompletePostObject, nil) rmcResponseBytes := rmcResponse.Bytes() responsePacket, _ := nex.NewPacketV1(client, nil) responsePacket.SetVersion(1) responsePacket.SetSource(0xA1) responsePacket.SetDestination(0xAF) responsePacket.SetType(nex.DataPacket) responsePacket.SetPayload(rmcResponseBytes) responsePacket.AddFlag(nex.FlagNeedsAck) responsePacket.AddFlag(nex.FlagReliable) nexServer.Send(responsePacket) }