[comp.protocols.tcp-ip.ibmpc] writing a server with PCIP - I am having problems

stu@sdl.scs.com (Stu Brown) (01/23/91)

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