typedef enum {
SLT_USER_LOAD_APPLICATION = 0x0,
SLT_GEODE_LOAD,
} SocketLoadType;
The Socket library has the ability to load an application when it senses packet coming in to a port. It uses the
SocketLoadType
to determine how to load the application: via
UserLoadApplication() or
GeodeLoad().
Include: socket.goh
typedef enum {
SO_RECV_BUF = 0x0, /* receive buffer size */
SO_SEND_BUF = 0x2, /* send buffer size */
SO_INLINE = 0x4, /* inline urgent data */
SO_NODELAY = 0x6, /* send data immediately */
SO_OWNER = 0x8, /* which app owns socket */
} SocketOption;
Various options which may be changed on a per-Socket basis by means of the
SocketSetIntSocketOption() routine.
Include: socket.goh
typedef struct {
word SP_port; /* 16-bit port number */
ManufacturerID SP_manuf; /* 16-bit manufacturer's ID */
} SocketPort;
Port numbers identify a particular line of communication within a machine. Port numbers may be 32-bit or 16-bit, depending on the domain. They are specified via the
SocketPort
structure, made up of a 16-bit
ManufacturerID
and 16-bit token number. If the domain uses 16-bit socket numbers, then use MANUFACTURER_ID_SOCKET_16BIT_PORT as the
ManufacturerID
. If the domain allows 32-bit socket numbers, then you may use MANUFACTURER_ID_SOCKET_16BIT_PORT or some other
ManufacturerID
.
Include: socket.goh
typedef WordFlags SocketRecvFlags;
#define SRF_ADDRESS (0x8000) /* return source address of data */
#define SRF_URGENT (0x4000) /* return urgent data, if any */
#define SRF_PEEK (0x2000) /* leave data in socket */
These flags allow you to set options when receiving data from a socket. SRF_ADDRESS requests the address of the machine sending the data. SRF_URGENT requests that only urgent data be returned, if any. SRF_PEEK asks that the data be left on the socket.
Include: socket.goh
typedef WordFlags SocketSendFlags;
#define SSF_ADDRESS (0x8000) /* an address is supplied */
#define SSF_URGENT (0x4000) /* this is urgent data */
#define SSF_OPEN_LINK (0x2000) /* this datagram should open the
* link, if it is closed */
Use this structure to specify options when sending data over a socket. You may signal that you are specifying an address and/or that the packet sent should be marked urgent.
Include: socket.goh
typedef WordFlags SoundDriverCapability; #define SDC_NOISE 0x8000 #define SDC_WAVEFORM 0x6000 #define SDC_TIMBRE 0x1800 #define SDC_ENVELOPE 0x0600 typedef WordFlags SoundDriverNoiseCapability; #define SDNC_NO_NOISE 0x0000 #define SDNC_WHITE_NOISE 0x8000 typedef WordFlags SoundDriverWaveFormCapability #define SDWFC_NONE 0x0000 #define SDWFC_SELECT 0x2000 #define SDWFC_GENERATE 0x4000 typedef WordFlags SoundDriverTimbreCapability; #define SDTC_TONE_GENERATOR 0x0000 #define SDTC_ADDITIVE 0x0800 #define SDTC_MODULATOR 0x1000 #define SDTC_SELECTIVE 0x1800 typedef WordFlags SoundDriverEnvelopeCapability; #define SDEC_NONE 0x0000 #define SDEC_ADSR 0x0200 #define SDEC_DSP 0x0400
These fields encode information about what the sound driver is capable of in terms of music synthesis.
GEOS SDK TechDocs|
|
SocketError ... |
SoundPlayFlags ...