To Lukas,
SOCK_STREAM and SOCK_DGRAM are platform specific.
In fpc socketsh.inc I found the following code (sunos is defined on
solaris):
{$ifdef sunos}
SOCK_STREAM = 2; { stream socket }
SOCK_DGRAM = 1; { datagram socket }
SOCK_RAW = 4; { raw-protocol interface }
SOCK_RDM = 5; { reliably-delivered message }
SOCK_SEQPACKET = 6; { sequenced packet stream }
{$else}
SOCK_STREAM = 1; { stream (connection) socket }
SOCK_DGRAM = 2; { datagram (conn.less) socket }
SOCK_RAW = 3; { raw socket }
SOCK_RDM = 4; { reliably-delivered message }
SOCK_SEQPACKET = 5; { sequential packet socket }
{$endif}
Regarding the missing IP_TOS in fpc sockets for Solaris, I'll try to find
out if they are supported. If yes, I'll raise a "bug" to the fpc people.
Ludo
> Thank you very much, thats it
> just change like you described it and it works !!!
>
> i will now test my other progs and give you feedback when i
> finished thanks again
>
> cheers peter
>
> > Just figured out that Solaris uses different values for SOCK_STREAM
> > and SOCK_DGRAM. In ssfpc.inc change
> > SOCK_STREAM=2;
> > SOCK_DGRAM=1;
> >
> > I tested this on solaris 10 x86 and I get output from your test
> > program. Can you please test this on SPARC? BTW I got a 120
> "protocol
> > not supported" error.
> >
> > Ludo
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public