Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/tcp #4

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rethought
decanus committed Mar 16, 2019
commit 9561781ed9181ce4865764e957be64970f07798a
4 changes: 3 additions & 1 deletion Sources/Hobbits/TCP/TCPConnection.swift
Original file line number Diff line number Diff line change
@@ -2,12 +2,14 @@ import Foundation

class TCPConnection {

func read() -> Request {
func read(length: Int) -> [UInt8] {

}

func write(_ response: Response) throws {
let data = String(describing: response)

// @todo write(data.bytes)
}

func close() {