2.2.1 AppWFDAcceptHeader Message

The AppWFDAcceptHeader message is sent by the client to the server after the TCP connection is established using the port and IP information sent in the AppWFDConnectionIE message to confirm the connection. The client MUST send the first eight bytes of the PSK (specified in the SessionId field) exchanged during L2 connection followed by the ConnectionType field. ConnectionType MUST be set to 0 to indicate that the connection is over WFD. The server MUST validate the SessionId and send the AppWFDAcceptHeader message to the client on the connected socket. The client MUST validate the AppWFDAcceptHeader message received from the server by comparing it to the message sent by the client. If the headers do not match, the client MUST abort the connection.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

SessionId

...

ConnectionType

...

SessionId (8 bytes): This field consists of the first 8 bytes of the PSK that is exchanged during the WFD L2 connection. The SessionId ensures that the same applications that connected over L2 are connecting over L3.

ConnectionType (8 bytes): This field indicates the type of transport over which the server and client connected. This field MUST be set to 0 to indicate that the connection is over WFD.