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
The accept System Call
Using the accept system call you can accept connections once the listening socket
receives them.The accept system call then returns a file descriptor that can be used to
read and write data from and to the socket.
To use accept, execute it with the socket() file descriptor as argument one.The
second argument, which can be NULL, is a pointer to a sockaddr structure. If you use
this argument, the accept system call will put information about the connected client
into this structure.This can, for example, allow you to get the connected client’s IP
address. When using argument 2, the accept system call will put the size of the filled-in ...
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