File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,30 @@ This file is a manually maintained list of changes for each release. Feel free
4
4
to add your changes here when sending pull requests. Also send corrections if
5
5
you spot any mistakes.
6
6
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
+
7
31
## 0.3.0 (2013-06-23)
8
32
9
33
* Feature: Add ` Datagram\Socket::end() ` method which closes the socket as soon
@@ -19,4 +43,3 @@ as the remaining outgoing buffer has been sent.
19
43
## 0.1.0 (2013-01-21)
20
44
21
45
* First tagged release
22
-
You can’t perform that action at this time.
0 commit comments