Click here to Skip to main content
15,881,089 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Regarding Colors for the Entire Colums in a CListCntrl Item. Pin
Rajesh R Subramanian25-Oct-09 6:42
professionalRajesh R Subramanian25-Oct-09 6:42 
QuestionUsing splitter in the CDockablePane Pin
AshishMahajan25-Oct-09 6:13
AshishMahajan25-Oct-09 6:13 
QuestionMemory Leak Part II Pin
BarryPearlman25-Oct-09 4:45
BarryPearlman25-Oct-09 4:45 
AnswerRe: Memory Leak Part II Pin
Rajesh R Subramanian25-Oct-09 6:14
professionalRajesh R Subramanian25-Oct-09 6:14 
GeneralRe: Memory Leak Part II Pin
BarryPearlman25-Oct-09 14:09
BarryPearlman25-Oct-09 14:09 
GeneralRe: Memory Leak Part II Pin
Rajesh R Subramanian25-Oct-09 16:31
professionalRajesh R Subramanian25-Oct-09 16:31 
AnswerRe: Memory Leak Part II Pin
cmk25-Oct-09 7:01
cmk25-Oct-09 7:01 
QuestionWant to ask about recv() and sent() function in sockets. Pin
WindowsVsLinux25-Oct-09 2:33
WindowsVsLinux25-Oct-09 2:33 
Hi,
I want to ask something about socket programming in XP. I am using multiple send() and recv() command in a single function in server and client both but its not wroking properly.Actually i am sending a string and it should recv by server and then send back to client in a single function. Simply-

client :
{
printf("\nEnter the string.");
gets(sent_to_client);
send(sock,sent_to_client,sizeof(sent_to_client),0);//it will be sent to server
Sleep(1000);
printf("String is %s\n",sent_to_client);
Sleep(500);
recv(sock,output_from_client,sizeof(output_from_client),0);//here it is received from server
Sleep(1000);
printf("\nreceived sucessfully:\n");
}
server:
{
recv(theclient,input_from_client,sizeof(input_from_client),0);//here it is received from client
here it will be executed on server and the output should be sent to client
send(theclient_to_client,output,sizeof(output_to_client),0);//send to client
}
I was thinking that firstly i will give input string in client then it will be sent to server.In server it will be executed(it can be anything which i want) and then send back to client.In client it will be received sucessfully.But somewhere i am wrong. I don't know where?Please help me.
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
Richard MacCutchan25-Oct-09 3:08
mveRichard MacCutchan25-Oct-09 3:08 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
WindowsVsLinux25-Oct-09 3:27
WindowsVsLinux25-Oct-09 3:27 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
Richard MacCutchan25-Oct-09 3:59
mveRichard MacCutchan25-Oct-09 3:59 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
WindowsVsLinux25-Oct-09 4:14
WindowsVsLinux25-Oct-09 4:14 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
Richard MacCutchan25-Oct-09 5:53
mveRichard MacCutchan25-Oct-09 5:53 
GeneralRe: Want to ask about recv() and sent() function in sockets. Pin
hugewave25-Oct-09 6:44
hugewave25-Oct-09 6:44 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
cmk25-Oct-09 6:51
cmk25-Oct-09 6:51 
QuestionRe: Want to ask about recv() and sent() function in sockets. Pin
David Crow26-Oct-09 3:55
David Crow26-Oct-09 3:55 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
cmk26-Oct-09 6:52
cmk26-Oct-09 6:52 
AnswerRe: Want to ask about recv() and sent() function in sockets. Pin
Moak26-Oct-09 0:37
Moak26-Oct-09 0:37 
QuestionFont metric questions Pin
transoft24-Oct-09 9:34
transoft24-Oct-09 9:34 
AnswerRe: Font metric questions Pin
«_Superman_»24-Oct-09 9:37
professional«_Superman_»24-Oct-09 9:37 
GeneralRe: Font metric questions Pin
transoft24-Oct-09 9:49
transoft24-Oct-09 9:49 
GeneralRe: Font metric questions Pin
«_Superman_»24-Oct-09 9:53
professional«_Superman_»24-Oct-09 9:53 
GeneralRe: Font metric questions Pin
transoft24-Oct-09 10:22
transoft24-Oct-09 10:22 
GeneralRe: Font metric questions Pin
«_Superman_»24-Oct-09 10:26
professional«_Superman_»24-Oct-09 10:26 
AnswerRe: Font metric questions Pin
Richard MacCutchan24-Oct-09 22:54
mveRichard MacCutchan24-Oct-09 22:54 

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.