Fixed the bind method for UDP.

This commit is contained in:
Sebastien PUECH
2017-06-22 16:57:50 +02:00
parent e86d4cc126
commit 825083d238
2 changed files with 6 additions and 0 deletions

View File

@@ -1045,6 +1045,10 @@ namespace dgram_tests {
});
ds.bind();
ds.bind(41234);
ds.bind(4123, 'localhost');
ds.bind(4123, 'localhost', () => {});
ds.bind(4123, () => {});
ds.bind(() => {});
var ai: dgram.AddressInfo = ds.address();
ds.send(new Buffer("hello"), 0, 5, 5000, "127.0.0.1", (error: Error, bytes: number): void => {
});