Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Best way to get a program to send emails Pin
David Crow12-Jan-15 5:12
David Crow12-Jan-15 5:12 
GeneralRe: Best way to get a program to send emails Pin
enhzflep13-Jan-15 9:01
enhzflep13-Jan-15 9:01 
GeneralRe: Best way to get a program to send emails Pin
CPallini12-Jan-15 5:04
mveCPallini12-Jan-15 5:04 
AnswerRe: Best way to get a program to send emails Pin
Dar Brett12-Jan-15 5:31
Dar Brett12-Jan-15 5:31 
AnswerRe: Best way to get a program to send emails Pin
Richard MacCutchan12-Jan-15 6:15
mveRichard MacCutchan12-Jan-15 6:15 
AnswerRe: Best way to get a program to send emails Pin
Michael Haephrati19-Jan-15 10:36
professionalMichael Haephrati19-Jan-15 10:36 
GeneralRe: Best way to get a program to send emails Pin
Anorexic Tribble20-Jan-15 8:51
Anorexic Tribble20-Jan-15 8:51 
QuestionAbout MMS(Microsoft Media Server)... Pin
Member 112155137-Jan-15 21:05
Member 112155137-Jan-15 21:05 
I'm studying MMS Protocol in order to develop the program connecting to FM Radio broadcast of which the url scheme is mms://domain_name/sub_name(directory name?) such as mms://wmc1.liquidviewer.net/WEEI

I can obtain the ip address of mms url above, but i don't know the meaning of sub_name. it's important when i write tcp socket code.

The socket function usually takes ip address and port number.

The MMS protocol's port number is used with 1755.

If i have ip address and port number, i can write code as below.

-------------------------------------------------------------
const int MMF_PROTOCOL = 1755;

char sServerIP[] = "127.0.0.1";

if(WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
ErrorHandling("WSAStartup() error!");

hSocket=socket(PF_INET, SOCK_STREAM, 0);
if(hSocket == INVALID_SOCKET)
ErrorHandling("socket() error");

memset(&servAddr, 0, sizeof(servAddr));
servAddr.sin_family=AF_INET;
servAddr.sin_addr.s_addr=inet_addr(sServerIP);
servAddr.sin_port=htons(MMF_PROTOCOL);

if(connect(hSocket, (struct sockaddr*)&servAddr, sizeof(servAddr))==SOCKET_ERROR)
ErrorHandling("connect() error!");

while(1)
{
send(hSocket, message, strlen(message), 0);
...
}
-------------------------------------------------------------

However, i don't know how to connect that mms url owing to the sub_name(directory?).

if mms url is mms://111.222.333.444, i can try to connect server with socket because in that case i know ip address and port number(MMS Protocol's port number, 1755).

But, with mms://111.222.333.444/sub_name(directory?), i can't connect due to sub_name.

I want to take account of sub_name, then do my purpose.

Do you know anybody about this problem?
AnswerRe: About MMS(Microsoft Media Server)... Pin
Richard MacCutchan7-Jan-15 22:45
mveRichard MacCutchan7-Jan-15 22:45 
GeneralRe: About MMS(Microsoft Media Server)... Pin
Member 112155138-Jan-15 4:47
Member 112155138-Jan-15 4:47 
QuestionRe: About MMS(Microsoft Media Server)... Pin
Richard MacCutchan8-Jan-15 5:11
mveRichard MacCutchan8-Jan-15 5:11 
AnswerRe: About MMS(Microsoft Media Server)... Pin
Member 112155138-Jan-15 5:29
Member 112155138-Jan-15 5:29 
GeneralRe: About MMS(Microsoft Media Server)... Pin
Richard MacCutchan8-Jan-15 7:40
mveRichard MacCutchan8-Jan-15 7:40 
GeneralRe: About MMS(Microsoft Media Server)... Pin
Member 112155138-Jan-15 15:58
Member 112155138-Jan-15 15:58 
QuestionEnumdisplaysetting return different display orientation in the same degree with different graphic Pin
cedricvictor1-Jan-15 5:02
cedricvictor1-Jan-15 5:02 
AnswerRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
Albert Holguin5-Jan-15 6:45
professionalAlbert Holguin5-Jan-15 6:45 
GeneralRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
cedricvictor5-Jan-15 18:20
cedricvictor5-Jan-15 18:20 
GeneralRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
Albert Holguin6-Jan-15 7:04
professionalAlbert Holguin6-Jan-15 7:04 
GeneralRe: Enumdisplaysetting return different display orientation in the same degree with different graphic Pin
Mike Nordell2-Feb-15 10:56
Mike Nordell2-Feb-15 10:56 
Joke): Pin
JayBoyy1-Jan-15 1:24
JayBoyy1-Jan-15 1:24 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Richard MacCutchan1-Jan-15 4:51
mveRichard MacCutchan1-Jan-15 4:51 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Babu_Abdulsalam1-Jan-15 17:04
Babu_Abdulsalam1-Jan-15 17:04 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Babu_Abdulsalam1-Jan-15 17:07
Babu_Abdulsalam1-Jan-15 17:07 
AnswerRe: Academic Question on Multi Core Pragramming Pin
Babu_Abdulsalam1-Jan-15 17:09
Babu_Abdulsalam1-Jan-15 17:09 
Joke: Pin
Scholar2471-Jan-15 0:56
Scholar2471-Jan-15 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.