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

C / C++ / MFC

 
AnswerRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 3:01
mveRichard MacCutchan30-Jan-13 3:01 
GeneralRe: TCP Server: Render the image on server side Pin
Sachin k Rajput 30-Jan-13 16:44
Sachin k Rajput 30-Jan-13 16:44 
GeneralRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 21:52
mveRichard MacCutchan30-Jan-13 21:52 
GeneralRe: TCP Server: Render the image on server side Pin
Sachin k Rajput 30-Jan-13 22:53
Sachin k Rajput 30-Jan-13 22:53 
GeneralRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 22:56
mveRichard MacCutchan30-Jan-13 22:56 
GeneralRe: TCP Server: Render the image on server side Pin
Sachin k Rajput 30-Jan-13 22:59
Sachin k Rajput 30-Jan-13 22:59 
GeneralRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 23:08
mveRichard MacCutchan30-Jan-13 23:08 
AnswerRe: TCP Server: Render the image on server side Pin
Erudite_Eric30-Jan-13 3:13
Erudite_Eric30-Jan-13 3:13 
Well, you are starting off from the wrong basis here.

A TCP server (in fact a client and server) is implemented in the kernel (on WIndows as TCPIP.sys) and supports am interface called TDI (on older Windows OSs and called something else on newer ones). TDI transports across the IO manager (Kernel to USer mode), providing sockets in the user mode for applications to use.

So what you need are two apps one that opens a socket and sends a bmp file, and another that waits on a socket and can render that bmp file to the screen.

(You can also not directly display UI stuff from the kernel so the stock TCP kernel driver would never be able to display a bmp)

If you really wanted to implement a user mode TCP server/client module then the question is why, and the problem is how you are going to send IP packets to the network card. And if you wanted to send Ethernet packets to the network card you would need to implement IP in user mode too. And if you wanted to do that you would need to write a network driver for your card with a interface accessible to the IO manager that you could open in user mode to get those Ethernet packets to it. All in all a massive and complex problem, so just use sockets, its what they are made for, and made by a lot of very clever people who understood the network stack and provided it for people like you to use. Smile | :)
==============================

Nothing to say.

GeneralRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 4:35
mveRichard MacCutchan30-Jan-13 4:35 
GeneralRe: TCP Server: Render the image on server side Pin
Erudite_Eric30-Jan-13 5:01
Erudite_Eric30-Jan-13 5:01 
GeneralRe: TCP Server: Render the image on server side Pin
Sachin k Rajput 30-Jan-13 16:47
Sachin k Rajput 30-Jan-13 16:47 
GeneralRe: TCP Server: Render the image on server side Pin
Erudite_Eric30-Jan-13 22:36
Erudite_Eric30-Jan-13 22:36 
GeneralRe: TCP Server: Render the image on server side Pin
Sachin k Rajput 30-Jan-13 22:57
Sachin k Rajput 30-Jan-13 22:57 
GeneralRe: TCP Server: Render the image on server side Pin
Erudite_Eric31-Jan-13 21:35
Erudite_Eric31-Jan-13 21:35 
AnswerRe: TCP Server: Render the image on server side Pin
Andy Bantly30-Jan-13 12:12
Andy Bantly30-Jan-13 12:12 
GeneralRe: TCP Server: Render the image on server side Pin
Sachin k Rajput 30-Jan-13 16:51
Sachin k Rajput 30-Jan-13 16:51 
GeneralRe: TCP Server: Render the image on server side Pin
Andy Bantly3-Feb-13 3:58
Andy Bantly3-Feb-13 3:58 
QuestionCan a modeless dialog box be a main window Pin
ForNow29-Jan-13 11:44
ForNow29-Jan-13 11:44 
AnswerRe: Can a modeless dialog box be a main window Pin
«_Superman_»29-Jan-13 19:17
professional«_Superman_»29-Jan-13 19:17 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow29-Jan-13 19:34
ForNow29-Jan-13 19:34 
AnswerRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan29-Jan-13 21:10
mveRichard MacCutchan29-Jan-13 21:10 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 7:30
ForNow30-Jan-13 7:30 
GeneralRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan30-Jan-13 7:34
mveRichard MacCutchan30-Jan-13 7:34 
GeneralRe: Can a modeless dialog box be a main window Pin
ForNow30-Jan-13 8:13
ForNow30-Jan-13 8:13 
GeneralRe: Can a modeless dialog box be a main window Pin
Richard MacCutchan30-Jan-13 9:07
mveRichard MacCutchan30-Jan-13 9:07 

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.