OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 // Accessor classes to read and write networking related structures. | 5 // Accessor classes to read and write networking related structures. |
6 | 6 |
7 part of os; | 7 part of os; |
8 | 8 |
9 abstract class PosixSockAddrStorage extends Accessor | 9 abstract class PosixSockAddrStorage extends Accessor |
10 implements SockAddrStorage { | 10 implements SockAddrStorage { |
11 PosixSockAddrStorage(ForeignMemory buffer, int offset) | 11 PosixSockAddrStorage(ForeignMemory buffer, int offset) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 set address(_InternetAddress address) { | 57 set address(_InternetAddress address) { |
58 buffer.copyBytesFromList(address._bytes, adr(8), adr(8 + 16), 0); | 58 buffer.copyBytesFromList(address._bytes, adr(8), adr(8 + 16), 0); |
59 } | 59 } |
60 | 60 |
61 int get scopeId => buffer.getUint32(adr(24)); | 61 int get scopeId => buffer.getUint32(adr(24)); |
62 | 62 |
63 set scopeId(int scopeId) { | 63 set scopeId(int scopeId) { |
64 buffer.setUint32(adr(24)); | 64 buffer.setUint32(adr(24)); |
65 } | 65 } |
66 } | 66 } |
OLD | NEW |