About wattcp, how to set the listening port and receive data?
The above program can be successfully sent!! The program on the WINDOWS side has already received it!
But I don't know how to write the receiving module on the DOS side!!!!
So annoying~!!!!!!!!!
Everyone, please help me~!!!! Thank you~!
#include <stdio.h>
#include <tcp.h>
int main()
{
word status;
word port;
longword host;
udp_Socket usock;
//------//
sock_init();
host=resolve("192.168.1.28"
;
port=8001;
//--- OPEN UDP ---//
udp_open(&usock,0,host,port,NULL);
//--- SEND DATA ---//
sock_write(&usock,"发送成功!!",10);
//--- CLOSE UDP ---//
sock_close(&usock);
sock_exit();
}
The above program can be successfully sent!! The program on the WINDOWS side has already received it!
But I don't know how to write the receiving module on the DOS side!!!!
So annoying~!!!!!!!!!
Everyone, please help me~!!!! Thank you~!

