mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net/openssl/websocket: implement io.Writer (#8980)
This commit is contained in:
@@ -74,11 +74,11 @@ pub fn new() FTP {
|
||||
return f
|
||||
}
|
||||
|
||||
fn (mut zftp FTP) write(data string) ? {
|
||||
fn (mut zftp FTP) write(data string) ?int {
|
||||
$if debug {
|
||||
println('FTP.v >>> $data')
|
||||
}
|
||||
zftp.conn.write('$data\r\n'.bytes()) ?
|
||||
return zftp.conn.write('$data\r\n'.bytes())
|
||||
}
|
||||
|
||||
fn (mut zftp FTP) read() ?(int, string) {
|
||||
|
||||
Reference in New Issue
Block a user