Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
You're right, sent_to_client, output_from_client, input_from_client, and output_to_client could all be char[] in the same scope as the send/recv calls that use them.

However, if it they were char[] then i would expect the code to work (assuming no buffer overflow from gets, ...), whereas char* wouldn't.

In lieu of more information it seems like a logical assumption.

...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

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 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 4:01
transoft25-Oct-09 4:01 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:03
mveRichard MacCutchan25-Oct-09 6:03 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 6:05
transoft25-Oct-09 6:05 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:19
mveRichard MacCutchan25-Oct-09 6:19 
Questionwrite CString Datatype to a DaoDatabase in UTF8 Format? Pin
A&Ms24-Oct-09 9:26
A&Ms24-Oct-09 9:26 
AnswerRe: write CString Datatype to a DaoDatabase in UTF8 Format? Pin
«_Superman_»24-Oct-09 9:47
professional«_Superman_»24-Oct-09 9:47 
QuestionCREATE AN EMPTY STRUCT? Pin
rhenry8424-Oct-09 7:07
rhenry8424-Oct-09 7:07 
AnswerRe: CREATE AN EMPTY STRUCT? Pin
Nemanja Trifunovic24-Oct-09 7:39
Nemanja Trifunovic24-Oct-09 7:39 
AnswerRe: CREATE AN EMPTY STRUCT? Pin
josda100024-Oct-09 7:44
josda100024-Oct-09 7:44 

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.