"
COPYRIGHT (c) 1999 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
"{ Package: 'stx:libbasic2' }"
IPSocketAddress variableByteSubclass:#IPv6SocketAddress
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'OS-Sockets'
!
!IPv6SocketAddress class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1999 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
"
!
documentation
"
Instances of IPv6SocketAddress represent v6 IP socket addresses.
These consist of a 16byte hostId and a port number.
Contains
2 byte domain AF_INET6
2 byte port
4 byte flowInfo
16 byte address
4 byte scope
[author:]
Claus Gittinger (cg@exept)
[see also:]
[instance variables:]
[class variables:]
"
! !
!IPv6SocketAddress class methodsFor:'queries'!
domainSymbol
^ #'AF_INET6'
!
obsoleteDomainSymbol
^ #inet6
! !
!IPv6SocketAddress methodsFor:'accessing'!
hostAddress
"/ struct sockaddr_in6 {
"/ unsigned short int sin6_family; /* AF_INET6 */
"/ __u16 sin6_port; /* Transport layer port # */
"/ __u32 sin6_flowinfo; /* IPv6 flow information */
"/ struct in6_addr sin6_addr; /* IPv6 address */
"/ __u32 sin6_scope_id; /* scope id (new in RFC2553) */
"/ };
^ (ByteArray new:16) replaceFrom:1 with:self startingAt:9
!
hostAddress:aByteArray
^ self replaceFrom:9 to:9+16-1 with:aByteArray startingAt:1
! !
!IPv6SocketAddress methodsFor:'private'!
adrBytesStart
^ 9
!
numAdrBytes
^ 16
! !
!IPv6SocketAddress class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libbasic2/IPv6SocketAddress.st,v 1.8 2003-05-21 21:21:33 cg Exp $'
! !