Re: tlipoll.c error
Posted in 2000
"Art S. Kagel" wrote: > All looks well, however, just on a lark, try changing the port # to > something smaller. Ports should be a 32bit int In IPv4, the port number is a 16-bit quantity. Unsigned, AFAIK, but 16-bit. The protocol header allocates 4 bytes for each of the I/P addresses, and 2 bytes for each of the port numbers (the source I/P address + port, and the destination I/P address + port). I don't know whether port numbers are larger in IPv6 (IPng). > but I would not put it past > some *&^%# to have coded it as a short in the engine somewhere. Also check > that your DNS resolution is set to read the local files FIRST before doing a > DNS search. Finally, to make sure that's all working well, write a little > 12 liner to query the service and hostname using gethostbyname and > getservicebyname and see if they return what you expect. > > Martin Oosthuizen wrote: > > Here goes : > > /etc/services > > > > sco-websrvrmgr 620/udp SCO WebServer Manager > > [...snip...] > > aas 1601/udp # Address Allocation Service > > onlinenet 38115/tcp ------- This is the it > [...mega-snip...] -- Yours, Jonathan Leffler (Jonathan.Leffler@Informix.com) #include <disclaimer.h> Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN "I don't suffer from insanity; I enjoy every minute of it!"