Skip to content

fl00r/go-iproto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

iProto

Asynchronous mail.ru iproto protocol implementation on Go.

Protocol

<request> | <response> := <header><body>
<header> = <type:int32><body_length:int32><request_id:int32>

Usage

package main

import (
	"fmt"
	"github.com/fl00r/go-iproto"
	"bytes"
)

func main() {
	var requestID int32 = 100
	body := new(bytes.Buffer)

	conn := iproto.Connect("localhost:33013")
	resp, err = conn.Request(requestID, body)

	fmt.Println("responseBody:", resp.Body)
}

About

Mail.ru iproto protocol implementation on Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages