Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 3:01 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 16:44 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 21:52 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 22:53 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 22:56 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 22:59 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 23:08 
AnswerRe: TCP Server: Render the image on server side PinmemberErudite_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 PinmvpRichard MacCutchan30-Jan-13 4:35 
GeneralRe: TCP Server: Render the image on server side PinmemberErudite_Eric30-Jan-13 5:01 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 16:47 
GeneralRe: TCP Server: Render the image on server side PinmemberErudite_Eric30-Jan-13 22:36 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 22:57 
GeneralRe: TCP Server: Render the image on server side PinmemberErudite_Eric31-Jan-13 21:35 
AnswerRe: TCP Server: Render the image on server side PinmemberAndy Bantly30-Jan-13 12:12 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 16:51 
GeneralRe: TCP Server: Render the image on server side PinmemberAndy Bantly3-Feb-13 3:58 
QuestionCan a modeless dialog box be a main window PinmemberForNow29-Jan-13 11:44 
AnswerRe: Can a modeless dialog box be a main window Pinmember«_Superman_»29-Jan-13 19:17 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow29-Jan-13 19:34 
AnswerRe: Can a modeless dialog box be a main window PinmvpRichard MacCutchan29-Jan-13 21:10 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow30-Jan-13 7:30 
GeneralRe: Can a modeless dialog box be a main window PinmvpRichard MacCutchan30-Jan-13 7:34 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow30-Jan-13 8:13 
GeneralRe: Can a modeless dialog box be a main window PinmvpRichard MacCutchan30-Jan-13 9:07 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 20 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid