Linux Socket Support

Chris Double chris at double.co.nz
Tue Jul 21 10:58:19 UTC 2009


On Tue, Jul 21, 2009 at 10:44 PM, Chris Double<chris at double.co.nz> wrote:
> I notice this is defined in 'traits unixFile osVariants bsd' so I
> copied this slot into the linux variants.

This is how you can test the problem from the shell. On Linux, to copy
across the socketConstants:

os_file parent osVariants linux
  _AddSlots: (| socketConstants = traits unixFile osVariants bsd
socketConstants |).

This is how I then called openTCPHost:

"Self 21" os_file openTCPHost: "Self 21" os_file openTCPHost:
'double.co.nz' Port: '80'
Error: connect failed: ECONNREFUSED.
Receiver is: raiseError.

Chris.
-- 
http://www.bluishcoder.co.nz



More information about the Self-interest mailing list