From 09d514d5b906d267f43727f6570ff73cb0d2b1fd Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 22 Apr 2018 01:25:17 +0200 Subject: [PATCH] [client:client] created public signatures 'Send(io.Writer) error' and 'Receive(io.Reader) error' --- src/git.xdrm.io/schastsp/client/client.go | 24 ++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/git.xdrm.io/schastsp/client/client.go b/src/git.xdrm.io/schastsp/client/client.go index 410d4a2..f130b84 100644 --- a/src/git.xdrm.io/schastsp/client/client.go +++ b/src/git.xdrm.io/schastsp/client/client.go @@ -1,6 +1,7 @@ package client; import ( + "io" "git.xdrm.io/schastsp/context" "git.xdrm.io/schastsp/client/keyset" ) @@ -46,4 +47,25 @@ func New(ctx *context.T, saveDir string) (*T, error) { return inst, nil; -} \ No newline at end of file +} + + + +/* (3) Processes and sends a new request +* +* @w Writer to send into +* +* @return err Error +* +---------------------------------------------------------*/ +func (c *T) Send(w io.Writer) error { return nil } + + +/* (4) Receives and processes a response +* +* @w Reader to receive from +* +* @return err Error +* +---------------------------------------------------------*/ +func (c *T) Receive(r io.Reader) error { return nil } \ No newline at end of file