src/stack/sock6/sock6int.c File Reference

The file implements the SOCKET6 Family. More...


Functions

void Sock6SpawnAbort (HANDLE h)
int Sock6Notify (HANDLE h, int Notification)
HANDLE Sock6ValidateRoute (HANDLE h)
PBM_Pkt * Sock6CreatePacket (HANDLE hSock, uint Payload, uint NextHeader)


Detailed Description

The file implements the SOCKET6 Family.

NOTE: (C) Copyright 2008, Texas Instruments, Inc.

Function Documentation

PBM_Pkt* Sock6CreatePacket ( HANDLE  hSock,
uint  Payload,
uint  NextHeader 
)

Description
The function creates an IPv6 packet for the SOCKET6 Family. It fills in the IPv6 header of the packet with values from the socket if a valid handle is passed, else with defaults.

Parameters:
[in] hSock Handle of the socket for which the packet is being created.
[in] Payload Size of the packet
[in] NextHeader Size of the packet
Return values:
Success - Pointer to the packet created
Error - NULL

int Sock6Notify ( HANDLE  h,
int  Notification 
)

Description
This function is called by Layer4 to notify the socket of any read/write/connection status activity.

Parameters:
[in] h Socket handle on which activity has been detected
[in] Notification Notification Event detected.
Return values:
1 - Message was accepted
0 - Message was not accepted
The action taken on a rejected message is message and protocol dependent.

void Sock6SpawnAbort ( HANDLE  h  ) 

Description
This function is called to abort a socket spawned via a call to Sock6PcbResolve

Parameters:
[in] h Socket handle of the Spawned socket.
Return values:
Not Applicable.

HANDLE Sock6ValidateRoute ( HANDLE  h  ) 

Description
This function finds and caches a route in the SOCK6 object. The Foreign IP associated with the socket is used to determine the route.

Parameters:
[in] h Socket handle on which route is to be cached
Return values:
Success - Handle to the ROUTE6 object
Error - 0


Copyright 2009, Texas Instruments Incorporated