Click to See Complete Forum and Search --> : recevfrom funtion


anamika1010
June 9th, 2004, 01:11 PM
I have a DOS system with two identical network cards. I have a program written to receive a packet from a server.

What I have been absorving is that I have to send a packet to the server first befor I can receive any packets. I dont know how to fix this.
Sending the packet is not an option because. After I receive the packet and parse the data I use that data in a NET USE command. The NET USE command fails when I send a packet.
It is a very odd problem and I dont know how to fix it.

Please help me. I dont know anything about socket programing. I am using Watt32 and DJGPP for compiling.

Bios1
June 9th, 2004, 08:26 PM
"I have a DOS system ".. If it is a DOS32 multitasking system, then it should be similar to Unix sockets. If it is MS-DOS (or similar), then it is more complicated, one should create a TCP stack, with limited possibilities. Search WEB for "DOSsocket", I saw there somebody presented its unaccomplished code source.

Bios1
June 9th, 2004, 08:29 PM
Sorry, "DOSsock", by analogy with "Winsock".