Sunday, January 24, 2016
How to interface to receive multimedia messages via mm1?
Send follows:
http://community.csdn.net/Expert/TopicView3.asp?id=5189609
Reply:
Top help, went to see.
Reply:
100 issues came in Morenhuida collar points it.
Reply:
The article is written by sending ah, mms encoded and then sent to that address
http post methodint ret = 0;
// Get the Content-Length value
stringstream sstr;
sstr & lt; & lt; _mmsSize;
// Constructor sent head first
this- & gt; m_MmsHead = "POST mmsc.monternet.com HTTP / 1.1 \ r \ n";
this- & gt; m_MmsHead + = "Content-type: application / vnd.wap.mms-message \ r \ n";
this- & gt; m_MmsHead + = "Accept: application / vnd.wap.mms-message, text / plain, * / * \ r \ n";
this- & gt; m_MmsHead + = "User-Agent: Nokia6681 / 2.0 (4.00.15) SymbianOS / 8.0 Series60 / 2.6 Profile / MIDP-2.0 Configuration / CLDC-1.1 \ r \ n";
this- & gt; m_MmsHead + = "Content-Length:" + sstr.str () + "\ r \ n";
this- & gt; m_MmsHead + = "\ r \ n";
int temp = this- & gt; m_MmsHead.length ();
// Send head
ret = send (this- & gt; m_sock, this- & gt; m_MmsHead.c_str (), this- & gt; m_MmsHead.length (), 0);
if (ret = this- & gt;! m_MmsHead.length ())
{
ret = -5;
return ret;
}
ret = 0;
int m = 0;
// Transmission process each time you send 1k
while (m & lt; _mmsSize)
{
//
if ((m + 1024) & lt; = _mmsSize)
{
ret = send (this- & gt; m_sock, (char *) (_ mmsBytes + m), 1024, 0);
if (ret! = 1024)
{
//
return -5;
}
else
{
m + = 1024;
}
}
else
{
ret = send (this- & gt; m_sock, (char *) (_ mmsBytes + m), _mmsSize-m, 0);
if (ret! = _mmsSize-m)
{
return -5;
}
else
{
m + = 1024;
}
m + = (_mmsSize-m);
}
}
if (ret! = _mmsSize)
{
ret = -3;
return ret;
}
// Receiving treatment, temporarily without processing
char * outRes = new char [MAX_HTTP_RES_SIZE];
memset (outRes, 0, MAX_HTTP_RES_SIZE);
ret = recv (this- & gt; m_sock, outRes, MAX_HTTP_RES_SIZE, 0);
string resStr = string (outRes);
// Uppercase
transform (resStr.begin (), resStr.end (), resStr.begin (), toupper);
// Analysis of MMS results simple process if the start is "HTTP / 1.1 200 OK, Success"
Sent successfully
// believesif (resStr.find_first_of ("HTTP / 1.1 200 OK, SUCCESS", 0)! = string :: npos)
{
ret = 0;
}
else
{
ret = -6;
}
delete outRes;
return ret;
Reply:
Landlord leave a contact it I want to share what
Reply:
Did not see the title, is sent to the MMSC receives the message parsing noticy get them to connect to the url url and then download the file via http
Reply:
Very good, very grateful to Azerbaijan.
msn: rookieport@msn.com
Reply:
To Zhongshan Telecom Shandong China Railcom, China Netcom, Jilin, Guangzhou Austrian days Neusoft. Insigma Nanjing Daily Hubei Radio, Fujian Post and so on more than 200, in Big Small SP platform provides software messaging platform that are in need. SMS gateway. MMS platform software, for SP platform software company to contact me
QQ: 84401116
Phone: 13950404552 Xu wind
Reply:
I analyzed the MMSC sent noticy SMS, SMS format seems PDU 8-bit encoding. But when I parse the contents of the back part of the message garbled. I do not know how to extract url decode the information received after the following:.
? ???? # $ Application / vnd.wap.mms-messageeREC5_Gbvk + Ahttp: //211.136.221.115/eREC5_G
bvk + A ???? 13670276776 / TYPE = PLMN?
Reply:
Ha ha
Reply:
I came too late, thank you seniors first.
Reply:
Ad I saw their predecessors, send the code well. Thank you! !
Reply:
I have done something like that to use java to do. Now we are experiencing a multimedia file parsing issues.
Nokia's proposed landlord can go to the official website to see. There will be a windfall.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment