Skip to content

Commit a26fd49

Browse files
committed
Add recent changes to changelog
1 parent feafb2f commit a26fd49

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,30 @@ This file is a manually maintained list of changes for each release. Feel free
44
to add your changes here when sending pull requests. Also send corrections if
55
you spot any mistakes.
66

7+
## 0.4.0 (2014-xx-xx)
8+
9+
* BC break: Unified socket addresses (string URIs instead of host+port)
10+
([#5](https://github.com/clue/datagram/pull/5)):
11+
12+
* The `Factory` now only accepts a single-argument full socket address (i.e. host:port for UDP/IP):
13+
14+
```php
15+
// Previously:
16+
$factory->createServer(1337, 'localhost')->then(…);
17+
$factory->createClient('localhost', 1337)->then(…);
18+
// Now:
19+
$factory->createServer('localhost:1337')->then(…);
20+
$factory->createClient('localhost:1337')->then(…);
21+
```
22+
23+
* The methods `Socket::getAddress()` and `Socket::getPort()` have been removed.
24+
* Instead, the following two methods have been introduced which both return
25+
a full socket address:
26+
* `SocketInterface::getLocalAddress()`
27+
* `SocketInterface::getRemoteAddress()`
28+
* Small refactoring to ease extending base classes
29+
([#4](https://github.com/clue/datagram/pull/4))
30+
731
## 0.3.0 (2013-06-23)
832

933
* Feature: Add `Datagram\Socket::end()` method which closes the socket as soon
@@ -19,4 +43,3 @@ as the remaining outgoing buffer has been sent.
1943
## 0.1.0 (2013-01-21)
2044

2145
* First tagged release
22-

0 commit comments

Comments
 (0)