Does the prototype for write include parameters that are two ints and a string?
No. Why do you think it doesn't work?
Convert the ints to a string, add the other string to that string, send it.
A struct would work if you cast it appropriately - what is the default type for the variable to be written in the write() prototype?