Command Details: Create
Category
Extended
Details
Command Code: | 03h |
Valid for: | Object Instance |
Description
This command creates a socket.
This command is only allowed in WAIT_PROCESS, IDLE and PROCESS_ACTIVE states.
Command Details
Field
Contents
CmdExt[0]
(reserved, set to zero)
CmdExt[1]
Value:
Socket Type:
00h
SOCK_STREAM, NON-BLOCKING (TCP)
01h
SOCK_STREAM, BLOCKING (TCP)
02h
SOCK_DGRAM, NON-BLOCKING (UDP)
03h
SOCK_DGRAM, BLOCKING (UDP)
Response Details
Field
Contents
Comments
Data[0]
Instance number (low)
Instance number of the created socket.
Data[1]
Instance number (high)