add local/remote ip to socket

This commit is contained in:
Asim Aslam
2018-11-14 19:41:13 +00:00
parent a0b257b572
commit 71bacf6991
3 changed files with 59 additions and 14 deletions

View File

@@ -11,6 +11,8 @@ type Message struct {
}
type Socket interface {
Local() string
Remote() string
Recv(*Message) error
Send(*Message) error
Close() error