Hello all,
Please could somebody with a little time on their
hands help me with my net sockets program?
The aim is to send multiple transactions via C#
network stream and read them back. The source
is designed to send a 50byte header and read
the result (50bytes). For one run this is fine,
however since i'll be using multiple transactions
i set it up with a windowsform button so i can
test sending the same transaction as many times
as i'd like, and hopefully get the same result.
However, when sending the second transaction (the
same as the first), it fails. I'm not sure if
this is my CICS driver refusing the second
transaction because i sent the same transaction
twice, or my program? Hopefully the former, although
I'm sure I made some test code previously that
worked fine and proved otherwise.
Could someone take a look for me and provide some
advice on the network stream. Most of the code
in this program is borrowed and tailored for my
purposes, if it comes in handy for anyone else
trying a similar thing then cool, but dont thank
me etc.
If you do a search for 'screwing' in the code
you'll find the bit where it fails and catches
an exception. Note i've only been programming in
C# for a week or so, so not entirely sure how
to trace through yet.
Here's the code..
www.amusement-arcade.com/netsock.cs
The code should be compilable, although you'll
need an IP address to connect to, and that's
behind a company firewall, so no good to
yourself, hence, i've hidden it and the port
as x.x.x.x etc..
Best regards,
Jode
Please reply to andrewsj@**removethisspambit**uk.ibm.com
if not in this post.