`
`++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
`+++++++++++++
`$Id: socketip.c,v 1.3 2001/09/04 02:01:57 davidc Exp $
`Copyright (c) 2001 BeComm Corporation
`Filename:
` socketip.c
`Abstract:
` IP part of the PortalSock protocol suite. Exports a protocol
`named "ip"
` that takes the place of the IP protocol. All it is really
`responsible for
` is holding (and sharing) the IP addresing information so the
`PsTcp and
` PsUdp protocols can access it.
`Owner:
` David Costanzo (davidc)
`-----------------------------------------------------------------
`------------*/
`#define SOS_DEBUG_ZONE "/beads/ip"
`#include <sosisocket.h>
`#include "stringssock.h"
`#include "utils.h"
`SOS_SOURCE_VERSION("$Id: socketip.c,v 1.3 2001/09/04 02:01:57
`davidc Exp $");
`
`/*
`
`++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
`+++++++++++++
`Named Constants
`-----------------------------------------------------------------
`------------*/
`static const char BEAD_NAME[] = "IP";
`
`/*
`
`++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
`+++++++++++++
`Protocol Definition
`-----------------------------------------------------------------
`
`1
`
`
`Page 1 of 4
`
`SONOS EXHIBIT 1026
`IPR OF U.S. Pat. No. 8,942,252
`
`
`
`------------*/
`
`static
`SOS_STATUS
`Ip_KeyCreate(
` SOS_PATH *Path,
` SOS_MESSAGE *Message
`
` SOS_ASSERT_ASSUMPTION(0, "Ip_KeyCreate() should not be
`hit.");
` return SOS_Error;
`
`){
`
`} s
`
`tatic
`SOS_STATUS
`Ip_MessageHandler(
` SOS_PATH *Path,
` SOS_MESSAGE *Message
`
`){
`
` SOS_ASSERT_ASSUMPTION(0, "Ip_MessageHandler() should not be
`hit.");
` SOS_Message_Destroy(Message);
` return SOS_Error;
`
`2
`
`} s
`
`tatic
`SOS_STATUS
`Ip_BeadInitialize(
` SOS_BEAD *Bead,
` SOS_REGOBJECT *InitContext
`
`){
`
`status;
` SOS_STATUS
` /* register Encode Edge */
` status = SOS_Edge_Register(
`Bead,
`"Encode",
`NULL,
`NULL,
`NULL,
`Ip_KeyCreate,
`Ip_MessageHandler,
`NULL,
`
`
`Page 2 of 4
`
`SONOS EXHIBIT 1026
`IPR OF U.S. Pat. No. 8,942,252
`
`
`
` NULL,
` NULL,
` NULL);
` if (SOS_SUCCEEDED(status)) {
` status = SOS_Bead_SchemaSet(Bead, BEAD_NAME);
` }
` else {
` SOS_DEBUGOUT_MAJOR_EVENT("Could not register Encode
`edge");
` }
` return status;
`
`} s
`
`tatic
`SOS_STATUS
`Ip_BeadUninitialize(
` void *BeadContext
`
` return SOS_Success;
`
`){
`
`} S
`
`OS_STATUS
`Ip_ModuleInit(
` SOS_OBJECTFILE *ObjectFile,
` SOS_REGOBJECT *InitContext
`
`){
`
` SOS_STATUS status;
`
` /* register the Bead */
` status = SOS_Bead_Register(
` ObjectFile,
` BEAD_NAME,
` NULL, /* Bead context */
` Ip_BeadInitialize,
` Ip_BeadUninitialize,
` NULL, /* Session Init */
` NULL /* Session Uninit */
` );
` return status;
`
`} v
`
`oid
`Ip_ModuleUninit(
` SOS_OBJECTFILE *ObjectFile
`)
`
`3
`
`
`Page 3 of 4
`
`SONOS EXHIBIT 1026
`IPR OF U.S. Pat. No. 8,942,252
`
`
`
`{ }
`
`4
`
`Page 4 of 4
`
`SONOS EXHIBIT 1026
`IPR OF USS.Pat. No. 8,942,252
`
`
`Page 4 of 4
`
`SONOS EXHIBIT 1026
`IPR OF U.S. Pat. No. 8,942,252
`
`