Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,13 @@
|
||||
module net
|
||||
|
||||
// Connection provides a generic SOCK_STREAM style interface that protocols can use
|
||||
// as a base connection object to support TCP, UNIX Domain Sockets and various
|
||||
// proxying solutions.
|
||||
pub interface Connection {
|
||||
addr() !Addr
|
||||
peer_addr() !Addr
|
||||
mut:
|
||||
read(mut []u8) !int
|
||||
write([]u8) !int
|
||||
close() !
|
||||
}
|
||||
Reference in new issue
Block a user