SCTPSerializer Class Reference

#include <SCTPSerializer.h>

List of all members.


Detailed Description

Converts between IPDatagram and binary (network byte order) IP header.

Public Member Functions

 SCTPSerializer ()
int32 serialize (SCTPMessage *msg, uint8 *buf, uint32 bufsize)
void parse (uint8 *buf, uint32 bufsize, SCTPMessage *dest)

Static Public Member Functions

static uint32 checksum (uint8 *buf, register uint32 len)

Constructor & Destructor Documentation

SCTPSerializer::SCTPSerializer (  )  [inline]

00030 {}


Member Function Documentation

int32 SCTPSerializer::serialize ( SCTPMessage msg,
uint8 *  buf,
uint32  bufsize 
)

Serializes an SCTPMessage for transmission on the wire. The checksum is NOT filled in. (The kernel does that when sending the frame over a raw socket.) Returns the length of data written into buffer.

void SCTPSerializer::parse ( uint8 *  buf,
uint32  bufsize,
SCTPMessage dest 
)

Puts a packet sniffed from the wire into an SCTPMessage.

static uint32 SCTPSerializer::checksum ( uint8 *  buf,
register uint32  len 
) [static]


The documentation for this class was generated from the following file:

Generated on Fri Mar 20 18:51:21 2009 for INET Framework for OMNeT++/OMNEST by  doxygen 1.5.5