Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Meeting trouble when sending TCP package. Pin
George25-May-03 19:06
George25-May-03 19:06 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m5-May-03 22:47
geo_m5-May-03 22:47 
GeneralRe: Meeting trouble when sending TCP package. Pin
George26-May-03 1:52
George26-May-03 1:52 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m6-May-03 2:22
geo_m6-May-03 2:22 
GeneralRe: Meeting trouble when sending TCP package. Pin
George26-May-03 2:58
George26-May-03 2:58 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m6-May-03 4:23
geo_m6-May-03 4:23 
GeneralRe: Meeting trouble when sending TCP package. Pin
George26-May-03 20:31
George26-May-03 20:31 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m7-May-03 4:29
geo_m7-May-03 4:29 
Hi,

I just discussed your problems with my colleague, who did some stuff around raw sockets on windows, and there is one big problem with - they are usable only for cases, when you need just to send some packet (maybe malformed Wink | ;) ), but when you want to establish the full tcp communication, you have a problem, that the ip stack will always intefere your communication - with the RSTs. Problem is, that the IP stack doesn't know nothing about the packet you sent - there is no assigned socket on the client tcp port - so the packet will be delivered to you, but meanwhile the system replies with RST. This is similar to a problem you had with the server port 5678 before.

We looked for some possible solutions -

1st is to find how to switch off this RST feature - it is considered to be security enhancements, when the machine doesn't respond with the RST - so we expect, that there can be some switch in a registry for controlling this behavior.

2nd is little bit more complicated for you, because it involves bit more programming (not too much) and little bit more administration - there are bunch of drivers around on internet, which allows you to somehow directly send and receive ethernet packets. Then you can install them and you will be completelly free to receive and deliver packets in any form Smile | :) . Then you can start even from the lowest level (ARP) and get the best knowledge of tcp - it will be development of complete ip stack. But this is a little bit time consuming to not be paid Poke tongue | ;-P . It looks complicated, but there are some shortcuts, which can help you, especially when you are designig that only for edu purposes - like you can ignore packet fragmenting, you can keep only one connection in one time, you can leave the ARP resolving on the normal ip stack on the machine etc.

3rd - learn just by looking what's happening in a network (nearly no programming at all Blush | :O ) ).

Back to your questions

Large value timeouts are twofold thingie - on one side, you have higher probability of succesfull connection establishment, on other side it always consumes resources, because you must keep some structures in memory etc. for this not-yet-opened connection.
Therefore the timeout value should be always ballanced between these two extremes. Timeouts are the most complicated part of any ip stack in my view - they are everywhere Smile | :)

Everything can be done on W2K platform, it is only matter of time Smile | :) . But with tcp consider the fact, that the full blown ip stack exists on a very small devices (embedded stuff), or even on ooold zx-spectrum with 48kb ram in total exists some working ip stack Smile | :)

Well, lot of letters but not too much help for today - you have to decide which way to go now, and then we can continue.
GeneralRe: Meeting trouble when sending TCP package. Pin
George27-May-03 20:54
George27-May-03 20:54 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m7-May-03 21:34
geo_m7-May-03 21:34 
GeneralRe: Meeting trouble when sending TCP package. Pin
George28-May-03 2:09
George28-May-03 2:09 
GeneralRe: Meeting trouble when sending TCP package. Pin
geo_m15-May-03 23:49
geo_m15-May-03 23:49 
QuestionHow to make the ComboBox's list box part horizontal scrollable?. Pin
psusong4-May-03 19:08
psusong4-May-03 19:08 
AnswerRe: How to make the ComboBox's list box part horizontal scrollable?. Pin
psusong4-May-03 19:14
psusong4-May-03 19:14 
GeneralI'd like to change some string that user selected by mouse in a HTML viewer Pin
Member 3487054-May-03 19:00
Member 3487054-May-03 19:00 
Generaldynamic dialog Pin
Member 3487054-May-03 18:59
Member 3487054-May-03 18:59 
GeneralRe: dynamic dialog Pin
Joan M4-May-03 22:04
professionalJoan M4-May-03 22:04 
GeneralRe: dynamic dialog Pin
Member 3487055-May-03 2:38
Member 3487055-May-03 2:38 
GeneralQuestion: How to start a browser Pin
skallestad4-May-03 18:31
skallestad4-May-03 18:31 
GeneralRe: Question: How to start a browser Pin
Dave Bryant4-May-03 18:34
Dave Bryant4-May-03 18:34 
GeneralRe: Question: How to start a browser Pin
Anonymous7-May-03 19:24
Anonymous7-May-03 19:24 
GeneralWindow handle from Process Pin
Anonymous4-May-03 17:51
Anonymous4-May-03 17:51 
GeneralRe: Window handle from Process Pin
Thomas Andersen4-May-03 21:01
Thomas Andersen4-May-03 21:01 
GeneralChild Process Pin
v3man4-May-03 14:23
v3man4-May-03 14:23 
GeneralRe: Child Process Pin
valikac4-May-03 16:58
valikac4-May-03 16:58 

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.