Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

usage of Csocket

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
HI, what's the difference, between sending data(via CArchive connected with the socket) with the << operator and with the CArchive::Write(WriteString,...)???
Is there also some other way of doing that?

Thx
Bubak
 
I don't know exactly what you are looking for but if
I were some MS programer I would've programmed it like aking one of them call another. Because behid it is the same implementation.

Is like GetAt() function and [] operator for the CString class. Anyway, go to C:\Program Files\Microsoft Visual Studio\VC98\Include and look for CArchive implementation in some .cpp and .h files. They are using pretty handy variables names. Or 'step in' when debugging a << or a CArchive::Write line.

One more thing. Take care with sockets. From my experience is better to use try-catch on socket operations with WSAGetLastError calls to always know what is going on.

Hope this gives you some ideas,
(If I would have some more time I would have come up with some more complete answer but...)
s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
OK, thanx ioinel, I'll try to debug << and Write in CArchive and look in that headers. I'll waste your time more, when I find some more questions ;-)))
Bye 4 now.

BUbak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top