(b []byte)
| 68 | } |
| 69 | |
| 70 | func (v *VirtualConn) Write(b []byte) (int, error) { |
| 71 | if len(b) > 0 { |
| 72 | // connect_data optimization: if this is the first write for a new |
| 73 | // session and the SYN hasn't been sent yet, bundle it. |
| 74 | v.s.EnqueueInitialData(b) |
| 75 | } |
| 76 | return len(b), nil |
| 77 | } |
| 78 | |
| 79 | func (v *VirtualConn) Close() error { |
| 80 | v.s.RequestClose() |