XML. Append (" & lt; Request>" );
XML. Append (" & lt; Transcode> 10002 & lt;/transcode>" );
XML. Append (" & lt; Out_trade_no & gt;" + + "orderNo & lt;/out_trade_no & gt;" );
XML. Append (" & lt; Device_info & gt;" + device + "& lt;/device_info & gt;" );
XML. Append (" & lt;/request>" );
XML. Append (" & lt;/alipay>" );
This is a Java XML format data, socket C how to send the data to someone else's server, no points, and too many do not understand, can anyone doubt dispels doubts, thank you
CodePudding user response:
Come and help the baiCodePudding user response:
Baidu to a pile of code, that have nothing to ask?CodePudding user response:
Find inappropriateCodePudding user response:
The question as you ask: I want to build a house, how coverYou make me how to answer you?
CodePudding user response:
Don't know how many predecessors in the TCP SocketSend (many) send (less) send (wealth)
Has been so much illness recv (), recv (wealth)
Inside the trap!
http://bbs.csdn.net/topics/380167545
CodePudding user response:
Put the string sent="transmission content";Write (clientSocketFd, sent c_str (), sent the size ());
//which clientSocketFd for establishing a connection socket,
To end after receiving a message parsing
CodePudding user response:
C can't identify XML format, can only be sent as a string, so parsing task can only to himselfCodePudding user response:
The XML string using the send to send directlyCodePudding user response: