NAME
STIX::Observable::Extension::Socket - STIX Cyber-observable Object (SCO) - Socket Extension
SYNOPSIS
use STIX::Observable::Extension::Socket;
my $socket_ext = STIX::Observable::Extension::Socket->new();
DESCRIPTION
The Network Socket extension specifies a default extension for capturing network traffic properties associated with network sockets.
METHODS
STIX::Observable::Extension::Socket inherits all methods from STIX::Object and implements the following new ones.
- STIX::Observable::Extension::Socket->new(%properties)
-
Create a new instance of STIX::Observable::Extension::Socket.
- $socket_ext->address_family
-
Specifies the address family (AF_*) that the socket is configured for (see
NETWORK_SOCKET_ADDRESS_FAMILY
in STIX::Common::Enum). - $socket_ext->is_blocking
-
Specifies whether the socket is in blocking mode.
- $socket_ext->is_listening
-
Specifies whether the socket is in listening mode.
- $socket_ext->options
-
Specifies any options (SO_*) that may be used by the socket, as a dictionary.
- $socket_ext->socket_type
-
Specifies the type of the socket (see
NETWORK_SOCKET_TYPE
in STIX::Common::Enum). - $socket_ext->socket_descriptor
-
Specifies the socket file descriptor value associated with the socket, as a non-negative integer.
- $socket_ext->socket_handle
-
Specifies the handle or inode value associated with the socket.
HELPERS
- $socket_ext->TO_JSON
-
Helper for JSON encoders.
- $socket_ext->to_hash
-
Return the object HASH.
- $socket_ext->to_string
-
Encode the object in JSON.
- $socket_ext->validate
-
Validate the object using JSON Schema (see STIX::Schema).
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/giterlizzi/perl-STIX/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/giterlizzi/perl-STIX
git clone https://github.com/giterlizzi/perl-STIX.git
AUTHOR
Giuseppe Di Terlizzi <gdt@cpan.org>
LICENSE AND COPYRIGHT
This software is copyright (c) 2024 by Giuseppe Di Terlizzi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.