Skip to content
Mail.ru iproto protocol implementation on Go
Go
Find file
Pull request Compare This branch is 261 commits ahead of fl00r:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
marshal
net
sbox
README.md
balancer.go
buffer.go
context.go
custom_timer.go
doc.go
epoch.go
generator.go
parallel_service.go
request.go
response.go
service.go
stat.go
wait_group.go

README.md

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)
}
Something went wrong with that request. Please try again.