Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!scs.com!stu From: stu@sdl.scs.com (Stu Brown) Newsgroups: comp.protocols.tcp-ip.ibmpc Subject: writing a server with PCIP - I am having problems Message-ID: <1991Jan23.154043.17485@sdl.scs.com> Date: 23 Jan 91 15:40:43 GMT Organization: Mentor Graphics Corp., Silicon Design Division Lines: 21 I am trying to write a server on my PC using the PCIP libraries. I am using the UDP protocol because the only example I can find of a server is tftp and it uses UDP. The client is a Sun. After the PC does a udp_open() on a port (I use 99), the Sun can connect and send a message. The PC gets the message and then does another udp_open() using the Sun port information. Then the PC server tries to send a reply message to the Sun. It looks like the message goes out (according to PCIP debugging) but the Sun, which is doing a read() on the socket never sees it. I can't use the Sun socket debugging program (trpt) because it only works on stream sockets and UDP is a datagram socket. What am I doing wrong? Can I use the TCP interface in PCIP for the same purpose? If so, I assume that I could use stream sockets. I can't figure out how to use the TCP layer and listen on a socket on the PC. -- Stuart Brown Mentor Graphics Corporation I.C. Group uunet!sdl!stu