+//I used to use the system versions of these from within lsocket (which has\r
+//functions whose name clashes with them) by using sockets.* and but I can't do\r
+//that anymore since in some cases connect is now provided by unixstuff.inc\r
+//hence these wrapper functions --plugwash\r
+{$ifndef mswindows}\r
+ function system_Connect(Sock: LongInt;const Addr;Addrlen: LongInt):Boolean;\r
+ begin\r
+ result := connect(sock,addr,addrlen);\r
+ end;\r
+ function system_SendTo(Sock: LongInt; const Buf;BufLen: LongInt;Flags: LongInt;var Addr;AddrLen: LongInt):LongInt;\r
+ begin\r
+ result := sendto(sock,buf,buflen,flags,addr,addrlen);\r
+ end;\r
+ function system_getpeername(Sock: LongInt;var Addr;var Addrlen: LongInt):LongInt;\r
+ begin\r
+ result := getpeername(sock,addr,addrlen);\r
+ end;\r
+ function system_listen(Sock: LongInt; MaxConnect: LongInt):Boolean;\r
+ begin\r
+ result := listen(sock,maxconnect);\r
+ end;\r
+ function system_Accept(Sock: LongInt;var Addr;var Addrlen: LongInt):LongInt;\r
+ begin\r
+ result := accept(sock,addr,addrlen);\r
+ end;\r
+{$endif}\r