IP Networking and DNS Resolution
|OSWord call||Action||Available on:|
|192||C0||IP Networking and DNS Resolution||SPROW Ethernet for BBC Master|
This call is modelled on the Berkeley Sockets API.
The control block follows the convention for high-numbered OSWORD calls where the control block contains the request & response sizes, action and result codes as the first 4 bytes of the block.
|XY+||On entry||On exit||Range|
|0||send block length, depends on subreason code||preserved||0x02…0x7F|
|1||return block length, depends on subreason code||preserved||0x02…0x7F|
|2||action||set to zero|
|3||must be zero||result|
|4…||request data||result data|
To allow for many functions to be performed but without using up lots of OSWord numbers a one byte action code is included, allowing for up to 256 different pieces of functionality. The action codes are further split into groups of 64 each:
|0x80…0xBF||Reserved for future use|
|0xC0…0xFF||Reserved for future use|
Unused or reserved action codes will return an error number at XY+3.