Skip to Main Content
Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
book

Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals

by James C Foster
April 2005
Intermediate to advanced content levelIntermediate to advanced
700 pages
20h 39m
English
Syngress
Content preview from Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
A plane class for such an object might look like the following.
Example 1.9 Plane Class
1 public class plane{
2 int Weight;
3 int Speed;
4 int Maneuverability;
5 Location Position; /* The Location type defined elsewhere as an (x, y, z) coordinate */
6
7
plane( int W, int S, int M, Location P ){
8 Weight = W;
9 Speed = S;
10 Maneuverability = M;
11 Position = P;
12 }
13
14
void SetWeight( plane current, int W ){
15 Current.Weight = W;
16 }
17
18
/* Additional Methods for SetSpeed, SetWeight, SetPosition, SetManeuverability,
SetPosition defined here */
19 }
This code is used to initialize a plane object. A calling method specifies each of the
required options that a plane object must have—in this case, a weight, a speed, a maneu-
verability rating, and a position.The SetW ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

32/64-Bit 80x86 Assembly Language Architecture

32/64-Bit 80x86 Assembly Language Architecture

James Leiterman

Publisher Resources

ISBN: 9781597490054