Mercurial > prosody-hg
comparison net/server_event.lua @ 6047:4db0403bfc0d
net.server_{select,event}: Add compat code for supporting the same client port API on connections
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 01 Apr 2014 15:26:40 +0200 |
| parents | b7dd7b8165df |
| children | 7a5ddbaf758d 8029b8a5f37a |
comparison
equal
deleted
inserted
replaced
| 6046:b7dd7b8165df | 6047:4db0403bfc0d |
|---|---|
| 365 end | 365 end |
| 366 | 366 |
| 367 function interface_mt:ssl() | 367 function interface_mt:ssl() |
| 368 return self._usingssl | 368 return self._usingssl |
| 369 end | 369 end |
| 370 interface_mt.clientport = interface_mt.port -- COMPAT server_select | |
| 370 | 371 |
| 371 function interface_mt:type() | 372 function interface_mt:type() |
| 372 return self._type or "client" | 373 return self._type or "client" |
| 373 end | 374 end |
| 374 | 375 |
